Ai-agent-skills brownfield-enrich
Schema reference for comment enrichment. The enrichment workflow is printed by `wednesday-skills map` in the `[ENRICH]` block — follow those instructions.
install
source · Clone the upstream repo
git clone https://github.com/wednesday-solutions/ai-agent-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/wednesday-solutions/ai-agent-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/brownfield-enrich" ~/.claude/skills/wednesday-solutions-ai-agent-skills-brownfield-enrich && rm -rf "$T"
manifest:
skills/brownfield-enrich/SKILL.mdsource content
When to use
This skill is a schema reference. The full enrichment workflow is printed by
wednesday-skills map
in the [ENRICH] block when no API key is set — follow those steps directly.
Load this skill only when you need the
comments-enriched.json format spec or the enrichment rules.
What to do
-
Read
.wednesday/codebase/analysis/comments-raw.md- Each
dir/`` section is one module## \ - Tagged table: severity, tag, file, line, comment text
- Substantive untagged list: developer explanations and architecture notes
- Each
-
The
block in the terminal output already printed a pre-populated template for[ENRICH]
. Use it — fill in thecomments-enriched.json
fields for each module.null -
For each module that has tagged or untagged comments, determine:
: 1 sentence — what does this module do, inferred from the commentspurpose
:techDebt
|"high"
|"medium"
|"low""none"- high = multiple FIXME/BUG/XXX or systemic HACK/KLUDGE
- medium = several TODO/HACK
- low = minor TODOs only
- none = no debt signals
:isBizFeature
if this is a business feature (auth, payments, users, orders, notifications...)true
if infrastructure (utils, helpers, config, logging, db, cache...)false
: array of up to 3 concrete improvement suggestions drawn from the comments, orideas[]- Leave
for modules with zero comments — do not inventpurpose: null
-
Write
using the Write tool (not Bash, not Python — just Write tool directly)..wednesday/codebase/analysis/comments-enriched.json -
Report to dev:
- How many modules were enriched
- How many are biz features vs infrastructure
- Top 3 modules by tech debt
comments-enriched.json schema
This is a flat overlay — only enrichment fields. The CLI merges it with
comments.json on load.
Do NOT copy the full comments.json structure. Write only this shape:
{ "enrichedAt": "2026-03-24T12:00:00.000Z", "reversePrd": "2–3 paragraphs: what the project does, who uses it, main flows, biggest debt areas", "modules": { "src/auth": { "purpose": "Handles JWT-based authentication and session management", "techDebt": "medium", "isBizFeature": true, "ideas": ["Extract token refresh into a dedicated service", "Add rate limiting to login"] }, "src/utils": { "purpose": "Shared string/date utilities", "techDebt": "none", "isBizFeature": false, "ideas": [] } } }
Never
- Read raw source files — only read
comments-raw.md - Write Python or Bash scripts to manipulate JSON — use the Write tool directly
- Run
(full re-parse) — not needed; the CLI picks up enrichment automaticallywednesday-skills map - Write to
directly — write tocomments.json
(the overlay)comments-enriched.json