一键导入
he-learn
Converts post-release outcomes into durable docs and mechanical guardrails, clears generated scratchpads, and archives the initiative plan for reuse.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Converts post-release outcomes into durable docs and mechanical guardrails, clears generated scratchpads, and archives the initiative plan for reuse.
用 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.
Runs agent-first review fanout across correctness, architecture, security, data, and simplicity, then enforces priority gates before release verification.
| name | he-learn |
| description | Converts post-release outcomes into durable docs and mechanical guardrails, clears generated scratchpads, and archives the initiative plan for reuse. |
| argument-hint | [slug or path to a plan file] |
Turn execution outcomes into durable improvements that make the next cycle faster, safer, and more legible.
he-verify-release when an initiative is complete (GO decision)docs/ is the system of record for agent-visible project knowledge.AGENTS.md stays a map (table of contents) that points to docs/ for depth.AGENTS.md into a long instruction blob. If content is more than a sentence or two, put it in docs/ and link to it.docs/generated/memory.md is an inbox only. Promote or delete items, then clear it back to an empty scratchpad structure.docs/ when it improves legibility, as long as discoverability and links are maintained.Primary:
Secondary:
docs/generated/memory.md contentsUse this to decide where a learning goes and what must be updated for discoverability.
| Learning type | Durable location | Required discoverability updates |
|---|---|---|
| Project-wide setup, workflow entry points, doc map | AGENTS.md (short), plus deeper doc in docs/ | Link from AGENTS.md to the deeper doc |
| Durable policy or constraints in a domain | docs/<DOMAIN>.md (e.g. SECURITY.md, RELIABILITY.md, DESIGN.md, DATA.md, OBSERVABILITY.md, FRONTEND.md, PRODUCT_SENSE.md) | If a new domain doc is created or registry changes, update docs/DOMAIN_DOCS.md |
| “How to do X here” checklists, procedures, operational playbooks | docs/runbooks/<topic>.md | Ensure runbook frontmatter includes called_from so skills can discover it |
| Architectural or design decision history | docs/design-docs/<topic>.md | Update docs/design-docs/index.md with a link and short descriptor |
| Product, API, or behavior specification | docs/specs/<topic>.md | Update docs/specs/index.md with a link and short descriptor |
| Experiment/spike notes | docs/spikes/<topic>.md (or follow repo convention) | Update docs/spikes/README.md if it serves as the index |
| Temporary notes and raw snippets | docs/generated/memory.md only | Must be promoted or deleted during this skill |
docs/plans/active/<slug>-plan.mddocs/plans/ for <slug> and use the best match.ProgressSurprises & DiscoveriesDecision LogOutcomes & RetrospectiveReview FindingsVerify/Release DecisionRevision Notesbash scripts/runbooks/select-runbooks.sh --skill he-learnFor each meaningful issue, success, or surprise:
templates/learning-entry-template.md.Execute the learning loop for each learning:
AGENTS map update
AGENTS.md when the learning changes:
docs/ and link to it.Golden principles promotion
AGENTS.md under ## Golden Principles.Policy and runbooks
called_from: [he-learn, ...] or whatever set matches discovery rules.Specs and design docs
docs/specs/ and update docs/specs/index.md.docs/design-docs/index.md.Mechanical enforcement
scripts/ci/ (or the repo’s enforcement mechanism)he-docs-config.json if used by your docs/CI tooling)Architecture review
ARCHITECTURE.md for drift.ARCHITECTURE.md does not exist, create a minimal top-level map and link it from AGENTS.md.Tech debt tracker
docs/plans/tech-debt-tracker.md for:
Before archiving, ensure the plan is a reliable artifact for future reuse:
Outcomes & Retrospective with:
Surprises & Discoveries, Decision Log, and Verify/Release Decision are complete and evidence-backed.Revision Notes append-only.Progress.docs/generated/memory.md:
docs/generated/memory.md back to an empty scratchpad structure.docs/plans/active/docs/plans/completed/docs/plans/active/<slug>-plan.mddocs/plans/completed/<slug>-plan.mddocs/PLANS.md as the source of truth and keep the structure consistent and discoverable.AGENTS.md only when navigation or invariants changeddocs/plans/tech-debt-tracker.mddocs/generated/memory.mddocs/plans/completed/<slug>-plan.md (or per docs/PLANS.md)ARCHITECTURE.md reviewed and updated if neededdocs/generated/memory.md is processed and cleared, or explicitly marked not presentSurprises & Discoveries, Review Findings, and verify evidence logs.docs/PLANS.md, then make structure consistent and discoverable.Use an interactive question tool at transitions when available. Offer:
he-doc-gardening (recommended)he-spec if a new initiative is readyhe-triage if many new tracker entries were addedIf running autonomously and no interactive tool is available, proceed with the recommended next step and log an “Autonomous transition” note in Decision Log or Revision Notes.