AGENT SKILL

implement-recommendation

Implement a numbered architecture recommendation from the current conversation, a supplied report, or a report in the project's docs folder, following the project's coding workflow.

License 许可
MIT
最近更新
2026-10-23
Stars
★ 0
Forks
0

01 前言 Front Matter

name
implement-recommendation
description
Implement a numbered architecture recommendation from the current conversation, a supplied report, or a report in the project's docs folder, following the project's coding workflow.
argument-hint
<number> [report-path]
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

Implement Recommendation

Implement only the selected architecture recommendation in the current project. The invocation supplies a positive recommendation number and optionally a report path. In hosts that expand arguments, these arrive as $ARGUMENTS; otherwise read them from the user's invocation message.

Resolve the recommendation

improve-codebase-architecture saves reports in the project's docs/ folder as architecture-review-<project>-<MMDDYYYY>-<HHMM>.html (with -2, -3, … for same-minute runs). Resolve the report in this order:

  1. Supplied path. A path that doesn't exist as given, or a bare filename, is looked up in <project-root>/docs/, where <project-root> is git rev-parse --show-toplevel or the current directory outside Git.
  2. Current conversation. The architecture report already identified in this conversation.
  3. The docs/ folder. List <project-root>/docs/architecture-review-*.html. Use the newest one without asking. Determine "newest" from the date and time in the filename, not from alphabetical order (MMDDYYYY doesn't sort chronologically) or file modification time; among same-minute reports, the highest -N suffix is newest. If none exist, ask for the report path.

Read the selected candidate's problem, proposed solution, file references, tradeoffs, diagrams, and any settled design decisions. If an older report has unnumbered cards, use their displayed order starting at 1.

State the selected number, candidate title, and report path before editing. If the report came from the docs/ folder and others exist, name the newest report you chose so the user can redirect you to an older one. If the number is missing, invalid, or out of range, or no report can be found, ask for the missing selection or source. A bare invocation must not select a candidate on the user's behalf. Don't search temporary directories for reports.

Implement the selected work

Read the project's AGENTS.md/CLAUDE.md, glossary, and relevant ADRs. If CODING_WORKFLOW.md exists or the project instructions point to another coding workflow, read and follow it for this implementation. Work in the current project; the report is a proposal to verify against current code, not authority to bypass project instructions.

Record the starting commit, dirty paths, and staged changes. Preserve unrelated work and use an isolated branch/worktree when needed. Confirm that the candidate belongs to this project and still addresses real friction. Reuse settled decisions; ask only about unresolved choices that materially affect the implementation. If the proposal is obsolete or contradicts an unresolved architectural decision, explain the evidence before changing code.

Refine the design and state acceptance criteria, then implement the selected recommendation. Preserve existing behavior unless the selected recommendation explicitly requires a behavior change. Use codebase-design when refining module interfaces. Leave other recommendations for separate tasks.

Verify and finish

Use tdd for behavioral changes that warrant new tests. Run focused checks, the project's required checks, and relevant integration tests. Use code-review with the starting commit, worktree scope, acceptance criteria, and task-owned paths so it includes staged, unstaged, and new files. Fix actionable findings and rerun affected checks. Use an independent reviewer when available and permitted; otherwise disclose shared review context.

Use the available skill tool for those model-invoked skills, or read their installed SKILL.md and relevant references directly.

The architecture report is not a task-owned change: never stage, commit, push, or merge docs/architecture-review-*.html, even when using a broad add such as git add -A. Commit and push task-owned changes when authorized by the user or required by the project's coding workflow, preserving unrelated index/worktree changes. Perform other external actions only within existing task authorization. Report the selected recommendation, what changed, actual validation results and limitations, and commit/push status. Report deployment, signing, and device acceptance separately when applicable.

04 同仓库更多 Skills