Csummary

From joshft/correctless · View interactive version

Csummary is an AI agent skill from the GitHub repository joshft/correctless. Feature summary. Use after /cdocs to see what the workflow caught, or mid-feature to check progress.

How to use this skill

Skill file

/csummary — Feature Workflow Summary

Shared constraints apply. Before executing, read _shared/constraints.md from the parent of this skill's base directory. All constraints there apply to this skill.

Generate a one-page summary of everything the Correctless workflow caught during this feature. This is the "look what I saved you" report.

When to Run

Data Sources

Read these files to build the summary. Skip any that don't exist.

  1. The spec (.correctless/specs/{task-slug}.md) — check for rules added during review (rules not in the original draft)
  2. QA findings (.correctless/artifacts/qa-findings-{task-slug}.json) — issues caught during TDD QA
  3. Verification report (.correctless/verification/{task-slug}-verification.md) — issues caught during verification
  4. Git log on the current branch — count commits, measure duration
  5. Workflow state file — QA rounds, spec updates
  6. Test edit log (.correctless/artifacts/tdd-test-edits.log) — tests modified during implementation
  7. Audit trail (.correctless/artifacts/audit-trail-{branch-slug}.jsonl) — every file modification with workflow phase and timestamp. Shows exactly which files were touched in which phases, without manual instrumentation.

How to Build the Summary

Step 1: Identify the Feature

Run bash .correctless/hooks/workflow-advance.sh status to get the task name, spec path, and branch. If no active workflow, ask the human which feature to summarize and search .correctless/specs/ by slug.

Step 2: Gather Review Findings

Read the spec file. Look for rules that were added during the review phase — these are rules the spec author didn't think of. Indicators:

If a research brief exists (.correctless/artifacts/research/{task-slug}-research.md), note what the research agent found (stale APIs, CVEs, deprecated patterns).

Step 3: Gather Test Audit Findings

The test audit runs between RED and GREEN. Its findings are verbal (returned to the orchestrator) and may not be persisted as a file. Check:

Step 4: Gather QA Findings

Read .correctless/artifacts/qa-findings-{task-slug}.json. For each finding:

Step 5: Gather Verification Findings

Read .correctless/verification/{task-slug}-verification.md. Extract:

Step 6: Calculate Stats

Step 7: Classify Impact

For each issue caught, assess: would this have shipped to production without the workflow?

Count the "would have shipped" items. This is the headline number.

Output Format

Print the summary to the conversation AND write it to .correctless/artifacts/summary-{task-slug}.md:

# Workflow Summary: {Feature Name}

**Branch:** {branch name}
**Duration:** {time from first to last commit}
**Spec:** {.correctless/specs/slug.md}

## What the Workflow Caught

### Review found ({N} issues):  <!-- /creview (at standard intensity) or /creview-spec (at high+ intensity) -->
- {description of each issue added during review}
- {security checklist findings}

### Test Audit found ({N} issues):
- {test quality issues caught before implementation started}

### /ctdd QA found ({N} issues, {M} rounds):
- {each QA finding with instance + class fix}

### /cverify found ({N} issues):
- {verification findings}

## Research Insights (if research agent ran):
- {current best practices found, stale patterns avoided, CVEs dodged}

## Spec Updates During TDD:
- {if spec was revised mid-implementation, what changed and why}

## Stats
- **Total issues caught:** {N}
- **Would have shipped without workflow:** {M} ({percentage}%)
- **QA rounds:** {count}
- **Spec updates:** {count}

## What This Means
{1-2 sentences: "Without this workflow, {M} issues including {most critical} would have shipped to production."}

Claude Code Feature Integration

Task Lists

Use TaskCreate/TaskUpdate to show progress:

/export

After generating: "Export this summary to include in your PR description: /export .correctless/artifacts/summary-{task-slug}.md"

Autonomous Defaults

If Something Goes Wrong

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.