跳到正文
cccskills
免费在 GitHub 公开

fix

Fix actionable in-scope findings in the current Incan worktree, usually after /review. Use when the user asks to fix review findings, clean up reported issues, apply in-scope review feedback, or says /fix.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Fix — Incan Compiler

Purpose

/fix is the repair half of the review workflow. It consumes concrete findings from /review or obvious unresolved worktree issues and fixes them directly when they are in scope and safe.

The primary source of truth is the persistent report in the current worktree:

  • .agents/state/review-report.md

Use /fix when:

  • /review already identified blockers or warnings,
  • the user says "fix the findings",
  • the user wants review cleanup without a fresh diagnostic pass.

Do not use /fix as a substitute for first-pass diagnosis when the problem is still unclear. Use /review first.

/fix is different from /review: it should consume the current report, not wipe it. If the report is stale or obviously belongs to a previous run, rerun /review instead of trying to repair against bad state.

Workflow

  1. Start from the current dirty worktree and the concrete findings already on record from /review, inline review comments, or the user's instructions.
  2. Read .agents/state/review-report.md first when it exists.
  3. For orchestrated reviews, treat ## Findings as the default task list.
  4. For generic single-review reports, fall back to ## Files only if there is no top-level ## Findings list.
  5. Fix only findings that are:
    • in scope,
    • safe without extra user confirmation,
    • concrete enough to act on.
  6. Do not widen scope. Avoid opportunistic refactors beyond what is needed to resolve the findings cleanly.
  7. Update .agents/state/review-report.md as findings move between open, fixed, and blocked.
  8. Append short timestamped entries to ## Activity as you work. Log each major action instead of relying on a final prose recap.
  9. After edits, run make fmt.
  10. Run the narrowest relevant verification for the fixes you made.
  11. Run make pre-commit.
  12. If make pre-commit fails for reasons unrelated to your fixes, keep the local fixes and report the failure as residual risk in the report file.
  13. If findings remain unresolved, classify each as one of:
  • out of scope,
  • risky without user confirmation,
  • external blocker,
  • separate compiler bug.
  1. Preserve findings even when they are non-blocking or design-oriented. design-tension, maintainability, and docs drift are still findings; they may simply move to a lower-priority fix queue instead of being dropped.

Fixing rules

  • Preserve the user's worktree. Never revert unrelated changes.
  • Prefer small direct edits over broad rewrites.
  • Keep docs and code aligned. If you fix behavior, update user-facing docs that claim the old behavior. If behavior is out of scope, correct the docs instead of inventing implementation.
  • For Rust prose comments, write natural paragraphs and let make fmt wrap them. Do not manually chop prose into short lines.
  • For Markdown, keep prose as natural paragraphs. Do not introduce short-prosed or mechanically chopped text.
  • Do not fix boundary bugs with local-only coverage. If a finding involves import, reexport/facade, package consumer, dependency-owned type, test batch, vocab/desugarer, formatter, generated Rust, Rust metadata, or downstream behavior, add the relevant boundary coverage or document why that boundary is impossible for this fix.
  • Do not add a new split-brain workaround while fixing a split-brain bug. Prefer moving the decision into the canonical planner, metadata surface, registry, or shared helper that all relevant paths already consume.

Verification

/fix should usually run:

  • make fmt
  • narrow relevant tests or checks
  • make pre-commit

If make pre-commit fails because of unrelated sandbox or network issues, say so explicitly in .agents/state/review-report.md. That does not justify leaving local findings unfixed.

The report must remain a structured artifact. Do not replace it with a narrative summary. If ## Activity is missing, repair the report before you finish. For orchestrated runs, the canonical report should stay thin and findings-driven; do not recreate a giant per-file checklist there.

When consuming an orchestrated report, update:

  • ## Findings
  • ## Disagreements when relevant
  • ## Verification

Do not invent new findings unless the edit work uncovers a tightly related issue needed to finish the requested fix cleanly. Classification on findings is for handling, not suppression.

Output format

Produce a concise report with:

## Fix — <subject / branch / files>

### Fixed
<item> — <file>:<line> — <what changed>

### Verification
<command> — <result>

### Residual risk
<anything still unresolved, with classification>

If nothing needed fixing, say so directly.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add a new learning to the agent learnings file. Use when the user says /add-learning, asks to record a lesson, or when an implementation produced a reusable insight worth preserving for future agents.

中文简介正在准备中。当前显示原文说明。

encero-systems/incan702026年10月19日 更新

bump-rfc

免费

Transition an Incan RFC from one status to the next. Use when the user asks to promote, advance, or finalize an RFC, or says /bump-rfc. Handles Draft → Planned, Planned → In Progress, and In Progress → Implemented transitions.

中文简介正在准备中。当前显示原文说明。

encero-systems/incan702026年10月19日 更新

closeout

免费

Safely close out completed Incan work after a PR is merged by verifying merge status, syncing the base branch, removing task-owned local worktrees/assets, deleting merged local/remote branches, pruning refs, and reporting dirty or ambiguous leftovers. Use when the user says /closeout, asks to clean up after a merged PR, or wants local RFC/issue branch/worktree cleanup.

中文简介正在准备中。当前显示原文说明。

encero-systems/incan702026年10月19日 更新

Drafts a GitHub issue title and body using the target repository's issue templates under .github/ISSUE_TEMPLATE. Use when the user asks to create, draft, or file a GitHub issue, bug report, feature request, chore, documentation issue, or RFC proposal, or wants issue text that matches the repo's template.

中文简介正在准备中。当前显示原文说明。

encero-systems/incan702026年10月19日 更新

Drafts implementation plans with TDD, documentation updates, and repository verification commands before coding. Use when the user asks for an implementation plan, /create-plan, or structured pre-implementation design for work in encero workspaces (e.g. Incan, IncQL).

中文简介正在准备中。当前显示原文说明。

encero-systems/incan702026年10月19日 更新

Generate a PR description following the repository's pull request template. Use when the user asks to create, draft, or generate a PR description for a pull request. The skill automatically locates the PR template in the target repository and fills it in based on the git diff.

中文简介正在准备中。当前显示原文说明。

encero-systems/incan702026年10月19日 更新

查看 encero-systems 的全部技能

报告此技能的问题