بنقرة واحدة
ac-review
Review pending convention candidates. Approve, reject, or edit each candidate before it reaches CLAUDE.md.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review pending convention candidates. Approve, reject, or edit each candidate before it reaches CLAUDE.md.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Show auto-context pipeline status including observation counts, candidates, conventions, anti-patterns, reward signals, and lifecycle statistics.
Clear all auto-context data and remove auto-generated sections from CLAUDE.md. Use to start fresh or uninstall auto-context from a project.
Bootstrap project context by scanning structure, tech stack, config files, and git history. Generates initial conventions that surpass Claude Code's built-in /init. Use when setting up auto-context for a new project.
| name | ac-review |
| description | Review pending convention candidates. Approve, reject, or edit each candidate before it reaches CLAUDE.md. |
| disable-model-invocation | true |
Review candidates that have been promoted to review_pending status. No convention reaches CLAUDE.md without explicit user approval through this skill.
Important rules:
jq for all JSON operations (atomic writes with tmp+mv pattern).jq -nc for JSONL changelog entries.Read .auto-context/candidates.json in the project root.
Filter for entries where stage == "review_pending":
jq '[.[] | select(.stage == "review_pending")]' .auto-context/candidates.json
If no review_pending candidates found, tell the user:
No candidates pending review. Candidates need 3+ observations across 2+ sessions to qualify. Run
/ac-statusto see the current pipeline.
And stop.
If candidates exist, display: "Found N candidates ready for review."
For each review_pending candidate, present in this format:
### Candidate N of M
**Convention:** {text}
**Confidence:** {confidence}
**Observations:** {observations} across {sessions_seen length} sessions
**First seen:** {created_at}
**Evidence:**
- `{file}:{line}` -- {snippet}
(for each item in evidence array)
**Action:** approve / reject / edit
Wait for the user's response after each candidate. Do NOT present the next candidate until the current one is processed and written to disk.
.auto-context/conventions.jsonsession_count from .auto-context/lifecycle.json:
jq -r '.session_count // 0' .auto-context/lifecycle.json
If lifecycle.json is missing or corrupt, use 0 as fallback.text: candidate's text (unchanged)confidence: 0.7 (promoted extraction confidence)source: "extraction" (preserve original source)stage: "active"created_at: candidate's created_at (preserve original)approved_at: current ISO 8601 timestampsession_id: candidate's session_id (preserve original)last_referenced_session: session_count from lifecycle.jsonobservations: candidate's observations countsessions_seen: candidate's sessions_seen arrayconventions.json atomically (jq + tmp + mv)candidates.json atomically (filter by text match).auto-context/changelog.jsonl:
jq -nc --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg text "{text}" \
'{ts:$ts, action:"approved", text:$text, reason:"user approved via /ac-review", from_stage:"review_pending", to_stage:"active"}' \
>> .auto-context/changelog.jsonl
.auto-context/candidates.json atomically.auto-context/changelog.jsonl with action: "rejected", reason: "user rejected via /ac-review", from_stage: "review_pending", to_stage: "rejected"action: "approved_edited" and include both original and modified text in the reason fieldAfter all candidates are reviewed, show a summary:
Review complete: N approved, M rejected, K edited
If any were approved:
Approved conventions will appear in CLAUDE.md at next session start. Run
/ac-statusto see current pipeline state.