AgentSkillsCN

tend

此技能可通过四种模式,对“.lore/”目录进行定期维护与优化:状态检查(验证或更新文档状态)、标签管理(统一标签格式、挖掘关联线索)、文件名规范(确保命名一致性、提供重命名建议)、目录结构优化(提升组织效率)。当文档日渐累积、状态字段陈旧过时,或项目亟需梳理与优化时,便可启用该技能。触发条件包括:“维护Lore知识库”、“检查文档状态”、“Lore知识库的日常维护”、“哪些内容已显陈旧”、“审视Lore健康状况”、“标签审计”、“整理Lore知识体系”。

SKILL.md
--- frontmatter
name: tend
description: This skill performs periodic hygiene on the .lore/ directory through four modes: status (verify/update document status), tags (unify tags, find connections), filenames (convention consistency, rename suggestions), directories (structure optimization). Use when documents have accumulated, status fields are stale, or organization needs attention. Triggers include "tend the lore", "check document status", "lore hygiene", "what's stale", "review lore health", "tag audit", "organize lore".

Tend

Maintain hygiene across .lore/ documents through four sequential modes.

Modes

ModePurposeProduces
statusVerify and update document status fieldsAccuracy: documents reflect reality
tagsUnify variants, find connections, identify clustersSemantics: tags are consistent and meaningful
filenamesCheck conventions, suggest renames based on contentFindability: names match content
directoriesSuggest subdivision, archive candidates, detect orphansNavigation: structure serves scale

Dependency chain: status → tags → filenames → directories

Each mode builds on prior work. Status must be accurate before tag analysis is meaningful. Tags inform filename suggestions. Tag clusters inform directory suggestions.

Invocation

code
/tend                    # Run all modes sequentially (pause between each)
/tend status             # Run only status mode
/tend tags               # Run only tags mode
/tend filenames          # Run only filenames mode
/tend directories        # Run only directories mode

Common Pattern

All modes follow dry-run → confirm → apply:

  1. Scan: Gather information without changing anything
  2. Report: Present findings in categorized format
  3. Confirm: Wait for user decisions on proposed changes
  4. Apply: Make confirmed changes and report final state

Never skip confirmation for changes to existing content.

Running a Mode

Load the appropriate reference file for detailed guidance:

ModeReference
statusreferences/status.md
tagsreferences/tags.md
filenamesreferences/filenames.md
directoriesreferences/directories.md

Each reference defines: checks to perform, output report format, how to apply changes.

Sequential Execution

When running /tend without arguments, execute modes in order with pauses:

  1. Run status mode to completion
  2. Ask: "Status complete. Continue to tags?"
  3. On confirmation, run tags mode
  4. Ask: "Tags complete. Continue to filenames?"
  5. On confirmation, run filenames mode
  6. Ask: "Filenames complete. Continue to directories?"
  7. On confirmation, run directories mode
  8. Present final summary

User can stop after any mode. The pause allows them to absorb findings before proceeding.

Re-scan between modes: After filenames or directories mode makes changes, paths may have changed. Re-scan .lore/ before the next mode to pick up new state.

Task Tracking

Use TaskCreate to make tending visible and structured:

code
TaskCreate: "Scan .lore/ for [mode-specific findings]"
TaskCreate: "Present [mode] findings"
TaskCreate: "Get user decisions"
TaskCreate: "Apply confirmed updates"

Mark tasks in_progress before starting, completed when done. Task boundaries force deliberate pacing through each phase.

Why this matters:

  • Rushing through phases causes missed documents
  • Each mode requires different analysis; collapsing them loses thoroughness
  • A task marked complete is a claim that the work was done properly

When to Use

  • Documents have accumulated and status is unclear
  • Before starting new work, to understand what's active
  • Periodically, to keep lore healthy
  • When something feels "off" about the project state
  • After completing a feature cycle (good time to archive)
  • When search isn't finding documents you know exist (tag/naming issues)