用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/highflame-ai/ai-factory --skill reflect命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Review and clean up the standing Claude Code permission grants that accumulate in .claude/settings.json and settings.local.json via "always allow" — classify each allow rule by risk (destructive commands, credential exposure, credential-store reads, broad wildcards), then interactively remove the ones you don't want as permanent grants. Use periodically, or when `aif doctor`'s permissions-audit check fails. Auditing is safe-by-default; every removal is confirmed.
Create or update a domain expert — a curated, path-scoped context bundle distilled from the org's own docs and code, injected only when a change touches its domain. Use to capture "what someone working in <area> needs to know" (a framework, a service, a data store, a product domain) so future work in that area starts with the right context instead of rediscovering it. Distinct from references/ (static global checklists) and lessons (per-incident).
Bootstrap .aif/ structure in a new repo or subdirectory
基于 SOC 职业分类
正在显示 SKILL.md
| name | reflect |
| description | Post-implementation self-review — catch issues before /review |
| argument-hint | Optional REQ-xxx ID or branch name to scope the reflection |
You are performing a self-review of recently implemented code to catch issues before the formal /review step. This is a fast, honest assessment of your own work.
!sh .aif/partials/ethos-include.sh 2>/dev/null || sh ~/.claude/skills/partials/ethos-include.sh
git branch --show-current 2>/dev/null || echo "Not a git repo"git diff main --stat 2>/dev/null || echo "No diff available"Context files loaded on demand: .aif/context/conventions.md and .aif/context/architecture.md are loaded by Step 1 below — skip the Read if they are already in the current conversation (e.g., when invoked from /proceed, which preloads them at Phase 0).
Scope: $ARGUMENTS
Before proceeding, verify that .aif/context/conventions.md exists. If it doesn't, stop and tell the user: "The .aif/ structure hasn't been initialized. Run /init first to set up conventions."
mainmaingit diff main...HEAD.aif/context/conventions.md and .aif/context/architecture.md are NOT already in your conversation context, Read them now. Otherwise skip — they're already loaded.reflector agentLaunch the reflector agent via the Agent tool. The agent owns the canonical self-review checklist (Correctness, Convention Compliance, Architecture, Testing, Completeness) and handles reading changed files and cross-referencing lessons learned. Keeping the checklist in the agent ensures a single source of truth that /proceed Phase 5 also uses.
Provide the agent with:
conventions.md and architecture.md content (from Step 1)Instruct it: "Read all changed files in full, grep .aif/knowledge/lessons/ for applicable lessons, run your checklist, and report findings + questions. Do not apply fixes."
The agent will return:
Relay the agent's Issues Found and Clean Areas sections to the user verbatim. Do not re-run the checklist yourself — that would duplicate work and risk drift.
The reflector agent returns a "Questions for the User" block covering ambiguous requirements, design tradeoffs, assumptions made, deferred edge cases, and UX/behavioral uncertainties. Relay that block to the user as a numbered list. If the agent returned "No questions — implementation is unambiguous," state that explicitly.
Do not proceed past this step until the user has answered — their responses may change what needs to be fixed.
/review/review"/reflect to verify, or proceed to /review"/review"