一键导入
he-doc-gardening
Recurring doc-gardening agent that scans for stale or obsolete documentation that no longer matches real code behavior, then queues fix-up work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Recurring doc-gardening agent that scans for stale or obsolete documentation that no longer matches real code behavior, then queues fix-up work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstraps a repository for the harness-engineered workflow by creating AGENTS.md, docs/specs, docs/spikes, docs/plans, docs/generated, and baseline tracking files aligned to the PLANS.md contract.
Opens/updates GitHub PRs, checks CI, responds to feedback, and merges after GO using gh CLI with explicit consent gates.
Captures paired browser bug evidence videos using agent-browser (`failure` before fix and `resolution` after fix), stores raw captures in `tmp/artifacts`, and supports minimal manual promotion for durable review evidence. Use for browser/UI bug fixes and release evidence.
Produces a PLANS.md-compliant executable plan from a spec. Use after intake.
Converts fuzzy requests into a concrete initiative spec in docs/specs using a single slug and measurable success criteria. Use at the start of non-trivial work.
Converts post-release outcomes into durable docs and mechanical guardrails, clears generated scratchpads, and archives the initiative plan for reuse.
| name | he-doc-gardening |
| description | Recurring doc-gardening agent that scans for stale or obsolete documentation that no longer matches real code behavior, then queues fix-up work. |
| argument-hint | [optional area, subsystem, or repo-wide] |
Run this skill periodically to keep docs accurate and aligned with shipped behavior.
he-learn surfaces doc driftcalled_from matches this skill (bash scripts/runbooks/select-runbooks.sh --skill he-doc-gardening), but never waive/override anything codified here.Prefer these commands over subjective scanning when available:
bash scripts/ci/he-docs-lint.shbash scripts/ci/he-runbooks-lint.shbash scripts/ci/he-docs-drift.shbash scripts/ci/he-specs-lint.shbash scripts/ci/he-plans-lint.shbash scripts/ci/he-spikes-lint.shbash scripts/runbooks/select-runbooks.sh --skill he-doc-gardening and read any returned runbooks. Apply their additions throughout — they must not waive or override gates codified here.Launch parallel subagents to scan each target area concurrently:
docs/generated/ (check last_updated timestamps; exclude docs/generated/memory.md)docs/DOMAIN_DOCS.md exist when relevant and include required headings (see scripts/ci/he-docs-lint.sh)docs/runbooks/ that violate format or conflict with enforced gates (additional runbooks are allowed and expected)scripts/ci/he-docs-drift.sh and the plans/specs/spikes lint scriptsEach subagent scans one area and returns a list of drift findings with priority.
docs/plans/tech-debt-tracker.md.docs/generated/.docs/specs/<slug>-spec.mddocs/plans/active/<slug>-plan.mdKeep each doc-fix plan small and independently shippable.
If any of these are missing in a consuming repo, record a high priority drift finding and queue a doc-fix initiative:
docs/runbooks/update-agents-md.mddocs/runbooks/update-domain-docs.mddocs/runbooks/code-review.mddocs/runbooks/review-findings.mddocs/runbooks/address-review-findings.mddocs/runbooks/verify-release.mddocs/runbooks/record-evidence.mddocs/runbooks/ci-failures.mddocs/runbooks/merge-change.mdThis is a minimum baseline. Repos may add additional runbooks; doc-gardening should not treat new runbooks as drift. Instead, ensure they:
title, use_when, called_from)docs/generated/memory.md is a scratchpad handled by he-learn, not doc-gardening.
docs/plans/tech-debt-tracker.mdnew items — recommend running he-triage to prioritize and convert accumulated items into specs.high finding and queue a fix.| Anti-Pattern | Better Approach |
|---|---|
| Blocking feature delivery for doc fixes | Only escalate critical invariant violations |
| Subjective scanning without running lint tools | Run objective drift signals first |
| Giant doc-fix initiatives | Keep each fix small and independently shippable |
| Treating new/additional runbooks as drift | Only flag runbooks that violate format or conflict with gates |
| Ignoring stale generated context | Check last_updated timestamps and refresh |
Always use interactive question tool at transitions (AskUserQuestion in Claude Code, request_user_input in Codex Plan mode, or equivalent). Offer:
he-spec for a cleanup initiative slug (recommended)he-doc-gardeningIf running autonomously or no interactive tool is available, continue with he-spec and log an Autonomous transition note in Decision Log or Revision Notes.