agentleFS
greglas75greglas75/zuvo/skills/backlog/SKILL.md

backlog

Skill8 starsChanged 3 months agoMITView on GitHub

Manage the project's tech debt backlog. Add, list, fix, wontfix, delete, prioritize, and suggest batch actions on tracked issues. Used by audit and review skills to persist findings, and directly by users to manage accumulated debt. Modes: list [category], add [description], fix B-{N}, wontfix B-{N} [reason], delete B-{N}, stats, prioritize, suggest, and the three grooming modes verify, groom and doc (whether each entry is still true, the dispositions that follow, and the ranked working document).

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use conventions, help and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pcatattacksSkill

    conventions

    Shared conventions for the solopreneur workflow. Preloaded into agents via the skills frontmatter field.

    Also in 3 projects that use this

  • MicrosoftSkill

    help

    Entry point for the MedImageInsight plugin, covering the getting-started walkthrough, how the skills work, what MI2 is, and troubleshooting.

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 4 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. 0 are common, 12 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add, list, and manage backlog items.

    line 16
  2. Distinctive:

    Use the mode word with a person and the real command at a shell.

    line 74
  3. Very specific:

    Read ../../shared/includes/backlog-grooming.md before using any of them.

    line 143
  4. Very specific:

    Read ../../shared/includes/run-logger.md for log format and file path resolution.

    line 187
  5. Very specific:

    Read ../../shared/includes/codesift-setup.md for initialization.

    line 192
  6. Distinctive:

    All interactions use these columns:

    line 209
  7. Very specific:

    All fingerprint components are lowercase, trimmed, with leading ./ stripped from paths.

    line 230
  8. Very specific:

    Default view shows: ID | Severity | File | Problem | Seen

    line 234
  9. Distinctive:

    When adding (interactive or from description):

    line 240
  10. Very specific:

    Read the current memory/backlog.md

    line 242
  11. Distinctive:

    If natural language input, extract:

    line 244
  12. Distinctive:

    If the user provides multiple issues (numbered list, bullets, or comma-separated), add them all in one pass.

    line 262
  13. Distinctive:

    Do not ask per-item for batch adds.

    line 266
  14. Very specific:

    Default (list): show OPEN items only.

    line 308
  15. Very specific:

    CodeSift-enhanced scoring: When indexed, use find_references(repo, symbol_name=<function>) to count callers.

    line 370
  16. Distinctive:

    CodeSift-enhanced discovery: Before analyzing existing items, scan for undiscovered debt:

    line 390
  17. Distinctive:

    If CodeSift unavailable, analyze only existing backlog items

    line 393
  18. Distinctive:

    If multiple patterns match the same items, show all matching suggestions.

    line 405
  19. Distinctive:

    After completing any action, print:

    line 447
  20. Very specific:

    Follow the retrospective protocol from retrospective.md.

    line 460
  21. Distinctive:

    If gate check skips: print "RETRO: skipped (trivial session)" and proceed.

    line 462
  22. Very specific:

    After printing this block, append the Run: line value (without the Run: prefix) to the log file path resolved per run-logger.md.

    line 464
  23. Very specific:

    When memory/backlog.md does not exist, create it from this template:

    line 473

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

zuvo:backlog — Tech Debt Management

Add, list, and manage backlog items. The backlog tracks technical debt discovered by audit skills, review agents, and manual entries.

Backlog location: memory/backlog.md at the MAIN checkout root — resolve worktree-safe per ../../shared/includes/backlog-protocol.md ("Where the Backlog Lives"), full canonical block (copy BOTH lines — the fallback is mandatory, without it a non-git CWD yields MAIN_ROOT="" and re-forks the backlog):

MAIN_ROOT=$(git worktree list --porcelain 2>/dev/null | head -1 | sed 's/^worktree //')
[ -z "$MAIN_ROOT" ] && MAIN_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)

NEVER create or write a memory/backlog.md inside a linked worktree — one backlog per repository. If memory/ does not exist at MAIN_ROOT, create it. If the file does not exist, create it from the template at the bottom of this skill. If a legacy worktree-local copy exists, merge its unique entries (by the dedup key defined in ../../shared/includes/backlog-protocol.md) into the main copy before proceeding.

Scope: Managing the tech debt backlog -- viewing, adding, resolving, prioritizing, and suggesting batch actions. Out of scope: Actually fixing the issues (use zuvo:fix-tests, zuvo:refactor, or the suggested command from suggest mode).

Argument Parsing

InputAction
(empty) or listShow all OPEN items as a summary table
list category:[x]Show OPEN items filtered by category (code/test/arch/dep/doc/infra)
list allShow all items including RESOLVED and WONTFIX
addInteractive: ask what to add, then append
add [description]Parse natural language description, add to backlog
fix B-{N}Mark item as RESOLVED
wontfix B-{N} [reason]Mark item as WONTFIX with reason
delete B-{N}Remove item (show details, ask confirmation)
delete B-{N} --forceRemove without confirmation
archive [--dry-run]Move ticked, resolution-marked entries to memory/backlog-done.md
regression B-{N}Re-open an archived entry under the same id (lookup said ARCHIVED)
statsShow counts by severity and category
prioritizeScore and rank all OPEN items by urgency
suggestGroup items by pattern, propose batch fix commands
verifyDecide whether every entry is still TRUE, before anything is closed, ranked, grouped or rendered — see Mode: verify
groom [--dry-run]Apply the dispositions those verdicts license; refuses on partial verification — see Mode: groom
doc [--partial]Render the groomed working document under zuvo/reports/ — see Mode: doc

The three mode words, and the commands they actually run

verify, groom and doc are this skill's words. The helper underneath has different ones: scripts/zuvo-home/backlog-groom.py --help is the authority, and it answers {plan, dispatch, ingest, apply, render, coverage}. The mapping lives here, once — a second copy is two names drifting apart:

ModeRunsPhase section
verifyplan, then dispatch + ingest once per chunkMode: verify
groomapplyMode: groom
docrenderMode: doc

coverage is not a mode: it is the read-only count ~/.zuvo/append-runlog prints at the end of a run when a verdict ledger exists and is short — never otherwise, because an unverified backlog is the steady state in most repos and a line on every run is a line nobody reads. Nobody types it.

verify --fleet and groom --fleet are not commands and never were. The plan that commissioned this feature named them four times each. plan --fleet is the read-only fleet verification (it reads ~/.zuvo/backlog-local.jsonl and writes only under ~/.zuvo/), and apply --fleet is rejected by design — grooming needs each repo's own lock, realpath, ignore status and backlog-done.md, and doing that across 88 checkouts is the 2026-07-19 fork-the-backlog incident with 88x the blast radius. Use the mode word with a person and the real command at a shell; never invent a third name for either.

Mode: verify

Nothing is closed, ranked, grouped or rendered until every entry carries a verdict backed by an evidence line. Not a sample — the whole set. Read ../../shared/includes/backlog-grooming.md first; it holds the closed five-token vocabulary, the four evidence shapes, the ledger schema and the fan-out contract, and this file deliberately does not paraphrase any of them.

backlog-groom.py plan --repo . [--dry-run]       # mint, decide the deterministic classes, queue the rest
backlog-groom.py dispatch --repo . --chunk N     # hand ONE chunk to the lane, seeds mixed in
backlog-groom.py ingest --repo . --dispatch <D> --response <R>

plan --fleet is the read-only variant: it verifies from the collector's snapshot, writes ~/.zuvo/backlog-verdicts/<host>-<repo>.jsonl, and touches no checkout. Its rows carry source=index because the snapshot truncates each entry at 400 characters, and a disposition on such a row is refused rather than performed.

A verdict survives between runs: it expires with the entry's text, not with the clock. So a second verify over an unchanged backlog dispatches nothing at all, and the resolution marker groom itself writes costs nothing either.

Mode: groom

backlog-groom.py apply --repo . [--dry-run]

apply refuses unless every entry carries a current verdict, naming the shortfall by id and exiting outside {0,1,2,10,11,12}. That refusal is the mechanism behind the rule above; it is not a warning to read past. It writes nothing to memory/backlog.md — closures are delegated to backlog-archive.py archive / drop-stale, ordering stays in the ledger and the rendered document, and where no helper will act the entry is reported no-remedy with its reason rather than a false archived.

apply --fleet is rejected naming the per-repo command, before the repo is even resolved.

Mode: doc

backlog-groom.py render --repo . [--partial]

The working document — clustered by theme, ranked by the prioritize score above, with per-cluster batch commands and an explicit not-verifiable section — lands under zuvo/reports/. It refuses below full coverage unless --partial, which stamps the coverage ratio into the header, omits the ranking entirely, and names the entries it did not render. Its header carries the source backlog's sha256, the coverage count and the generating version, plus the command that re-checks all three, so a reader can tell from the document alone whether it still describes the file.


The verification lane (agents/backlog-verifier.md)

Deciding whether an entry is still true is not one of the modes above, and it is not done inline. It is dispatched, one byte-capped CHUNK at a time, to agents/backlog-verifier.md — a read-only lane that returns one verdict and one evidence line per row.

The orchestration is in scripts/zuvo-home/backlog-groom.py, never in this file's prose:

StepCommand
mint, decide the deterministic classes, write the queuebacklog-groom.py plan --repo . [--dry-run]
hand one chunk to the lane, seeds mixed inbacklog-groom.py dispatch --repo . --chunk N
check the response and append only if nothing refusedbacklog-groom.py ingest --repo . --dispatch <D> --response <R>

Read ../../shared/includes/backlog-grooming.md before using any of them. Two things about this lane that are easy to get wrong and expensive to get wrong:

  • A chunk is all-or-nothing. ingest writes ledger rows only when the rejection list is empty. One bad record writes zero rows for every row the lane got right, so the check after a run is the ledger's byte count, not the presence of one verdict.
  • The four mechanical controls do not validate a verdict. Shape, resolvability and keyword overlap establish that the evidence is well-formed and points at a real line — they cannot say the verdict is correct. Only the seeded known-answers measure judgement, on K=4 rows per chunk. Never report a lane result as verified or cross-checked.

Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.

Inline verification is NOT a substitute for the lane. Deciding the rows yourself and recording the result as if the lane had run is the substitution no-gate-substitution describes: it produces verdicts with no agent: provenance for the cross-model spot check to select on, and it bypasses controls (a)-(d) entirely while reporting that they ran. If the harness genuinely cannot dispatch, say so and record the rows as unverified — groom then refuses, which is the correct outcome rather than a blocked one.


Mandatory File Loading

PHASE 0 — Bootstrap (before reading the backlog)

env-compat.md is here for one measured reason: this skill scans repositories and waits on the commands that do it, and it accounted for 485 of 11,690 Codex poll calls while referencing that include nowhere — so the "do not enter the poll loop" rule could not reach it however well written. Each poll re-sends the whole context (~108K tokens median) to learn one bit.

  1. ../../shared/includes/codesift-setup.md      -- [READ | MISSING -> WARN]
  2. ../../shared/includes/backlog-protocol.md    -- [READ | MISSING -> STOP] (the file format is the contract)
  3. ../../shared/includes/env-compat.md          -- [READ | MISSING -> WARN] (waiting rule; see below)
  4. ../../shared/includes/backlog-grooming.md    -- [READ for verify/groom/doc | MISSING -> STOP for those three modes]

retrospective.md and run-logger.md are END-of-run includes — they are loaded at completion, not here.

Run Logging

Read ../../shared/includes/run-logger.md for log format and file path resolution. Read ../../shared/includes/retrospective.md for log format and file path resolution.

CodeSift Integration

Read ../../shared/includes/codesift-setup.md for initialization.

Key tools for this skill:

CommandTaskCodeSift toolFallback
suggestFind undiscovered TODO/FIXME debtsearch_text(repo, query="TODO|FIXME|HACK", regex=true)Grep
suggestContext around TODO markersfind_and_show(repo, query=<function>, include_refs=true)Read the file
prioritizeCount references to affected functionfind_references(repo, symbol_name=<fn>)Skip (score from description only)
prioritizeBlast radius of recent itemsimpact_analysis(repo, since="HEAD~10", depth=2)Skip
fixFind related code when planning a fixsearch_symbols(repo, query=<keyword>)Grep
fixBatch-read related functionsget_symbols(repo, symbol_ids=[...])Multiple Read calls

Backlog Schema

All interactions use these columns:

ColumnDescriptionSet by
IDB-{N} sequentialAuto
StatusOPEN, RESOLVED, WONTFIXAuto (default: OPEN)
FingerprintDedup key (see format below)Auto
FileFile pathRequired
ProblemShort descriptionRequired
SeverityCRITICAL, HIGH, MEDIUM, LOWRequired
CategoryCode, Test, Architecture, Dependency, Documentation, InfrastructureRequired
SourceWhich skill added itAuto
SeenOccurrence countAuto
AddedDate first added (YYYY-MM-DD)Auto

Fingerprint Formats

  • From audit skills: file|rule_id|signature (e.g., auth.service.ts|cq8|missing-try-catch)
  • From test audit: file|pattern_id|signature (e.g., auth.test.ts|p-41|loading-only)
  • Manual add: file|manual|first-3-words-slugified (e.g., auth.ts|manual|missing-rate-limiting)

All fingerprint components are lowercase, trimmed, with leading ./ stripped from paths.

Listing View (compact)

Default view shows: ID | Severity | File | Problem | Seen


Adding Items

When adding (interactive or from description):

  1. Read the current memory/backlog.md
  2. Determine the next B-{N} ID
  3. If natural language input, extract:
    • File (ask if not apparent from description)
    • Problem (short description)
    • Severity (infer from keywords -- see inference rules)
    • Category (infer from file path)
  4. Compute the key per ../../shared/includes/backlog-protocol.md (id-preferred, content-fallback)
  5. Dedup check across both files — run the lookup, do not re-implement it: ~/.zuvo/backlog-archive.py lookup --repo "$MAIN_ROOT" "<candidate>"
    • OPEN (exit 10): update that entry in place — Seen, date, severity if worse. No duplicate.
    • ARCHIVED (exit 11): REGRESSION. Re-open under the SAME id with the back-link the protocol defines. Never mint a new id; never file it as a fresh finding.
    • ABSENT (exit 0): append a new entry with a fresh id. Checking only backlog.md is not a check — an entry that exists solely in backlog-done.md reads as ABSENT and comes back as new work.
  6. Confirm what was added

Batch Add

If the user provides multiple issues (numbered list, bullets, or comma-separated), add them all in one pass. Show a summary table for confirmation before writing.

Auto-Inference Rules

Do not ask per-item for batch adds. Infer missing fields:

  • Severity: race condition, security, data loss -> HIGH. any type, missing test -> MEDIUM. typo, naming -> LOW.
  • Category: *.test.* -> Test. *.service.*, *.controller.* -> Code. docker*, *.yml -> Infrastructure.
  • Source: manual
  • Seen: 1
  • Added: today's date

Resolving Items

fix and wontfix record the resolution on the entry and then ARCHIVE it. Neither removes the record: the archive is what lets a later sighting be recognised as a regression instead of being re-filed as new work.

  • fix B-{N}: verify exists (error if not), tick the box and append [FIXED <sha7>] to the existing text — never write over the problem description, because the description is what the content key is computed from.
  • wontfix B-{N} [reason]: verify exists, tick the box and append WONTFIX — <reason>.
  • archive [--dry-run]: move every ticked, marker-carrying entry into backlog-done.md via ~/.zuvo/backlog-archive.py archive --repo "$MAIN_ROOT". Entries holding a live [ ] sub-item are refused, not moved — split them first.
  • regression B-{N}: the ARCHIVED path of the lookup. Re-open under the same id with the back-link, severity one band higher, and the word REGRESSION in the report.
  • delete B-{N}: destructive and rarely right. Print "this destroys the record — archive is what you want", show the item, ask "Delete? (y/n)". With --force, skip the confirmation only.

Never archive by hand. ~/.zuvo/backlog-archive.py archive does it — with a lock, byte conservation, minted ids and the git-tracking refusal. What a hand-written archive breaks, and the measured incident behind the rule, are in backlog-protocol.md → "Archiving is done by the helper, never by hand" (kept there once rather than paraphrased here).

Order, not growth control: archive; never prune. A resolved entry does not stay in the open backlog — it moves verbatim to backlog-done.md, so the record survives. There is no size threshold: one resolved entry is already reason enough, and ~/.zuvo/append-runlog does the move automatically at the end of every run. backlog-archive.py status answers "is anything done still sitting here?" — exit 12 yes, 0 no. A tick with no resolution marker also moves, into a section whose heading says the reason was never recorded; only an entry with a live [ ] sub-item is held back. See "When to archive" in the protocol.


Listing Items

Default (list): show OPEN items only.

TECH DEBT BACKLOG -- [project name]
-----
| ID   | Severity | File                    | Problem                  | Seen |
|------|----------|-------------------------|--------------------------|------|
| B-1  | MEDIUM   | auth.service.ts         | catch(err: any)          | 3x   |
| B-2  | HIGH     | payout.service.ts       | Race condition in claim  | 1x   |
-----
OPEN: X items (C: _, H: _, M: _, L: _)

Stats

BACKLOG STATS
-----
OPEN:      X items
  CRITICAL:  _
  HIGH:      _
  MEDIUM:    _
  LOW:       _

By category:
  Code: _  Test: _  Architecture: _
  Dependency: _  Documentation: _  Infrastructure: _

Top files (by item count, top 5):
  1. services/payout.service.ts (3 items)
  2. handlers/webhook.ts (2 items)
-----

Prioritize

Score each OPEN item to produce a ranked list. The scoring formula:

Priority Score = (Impact + Risk) x (6 - Effort)
Dimension135
ImpactRarely slows workSometimes blocks developmentSlows the team every day
RiskNice to haveRegressions possibleSecurity or data loss risk
EffortMultiple daysAbout a weekA month or more

Score range: 2 (low priority) to 50 (fix immediately).

What doc DERIVES, and the one thing it cannot. The rendered document computes all three dimensions from the bytes — Impact from the entry's declared severity word, Risk from a small named vocabulary in its own text, Effort from its block size — and says so in the table's own caveat. When a dimension's vocabulary is absent the answer is the neutral 3, for Risk exactly as for Impact. Risk is never a copy of Impact: it was, and a critical entry naming no risk at all then printed Risk 5, indistinguishable from one that says "data loss", while the score counted one signal twice. A derived score is a reading order, not an assessment — the table above is what a HUMAN means by these dimensions.

CodeSift-enhanced scoring: When indexed, use find_references(repo, symbol_name=<function>) to count callers. Higher reference count means larger blast radius, which increases Impact and Risk scores.

Output:

PRIORITIZED BACKLOG
-----
| Rank | ID   | Score | Impact | Risk | Effort | Problem               |
|------|------|-------|--------|------|--------|-----------------------|
| 1    | B-2  | 40    | 5      | 5    | 2      | Race condition payout |
| 2    | B-1  | 24    | 4      | 4    | 3      | catch(err: any)       |
-----

Suggest

Analyze all OPEN items by pattern and propose batch actions.

CodeSift-enhanced discovery: Before analyzing existing items, scan for undiscovered debt:

  • search_text(repo, query="TODO|FIXME|HACK|WORKAROUND", regex=true) to find inline markers not yet tracked
  • Cross-reference with existing fingerprints to avoid duplicates
  • If CodeSift unavailable, analyze only existing backlog items

Pattern Matching

ConditionSuggested action
3+ items with the same CQ gate failurezuvo:code-audit [files] or direct batch fix
3+ items from test-audit with same pattern IDzuvo:fix-tests --pattern [ID] [path]
3+ items in the same modulezuvo:refactor [module]
5+ low-tier itemszuvo:code-audit --deep [path]
No OPEN items"Backlog is clear. Consider a periodic audit."

If multiple patterns match the same items, show all matching suggestions.

Output:

BACKLOG SUGGESTIONS
-----
Pattern: CQ8=0 in 5 files          -> zuvo:code-audit src/services/
Pattern: P-41 in 4 test files       -> zuvo:fix-tests --pattern P-41 src/
Hotspot: offer.service.ts (6 items) -> zuvo:refactor src/offer/offer.service.ts
-----

Error Handling

SituationResponse
fix B-99 but B-99 not found"B-99 not found. Run zuvo:backlog list to see current items."
list but backlog is empty"Backlog is empty. Use zuvo:backlog add to track issues."
add with vague description (no file)Ask for file path and specific problem
prioritize with 0-1 items"Only N item(s) -- no ranking needed."
suggest with 0 items"Backlog is clear. Consider scheduling a periodic audit."

Tech Debt Categories

AliasCategoryExamples
codeCodeDuplicated logic, magic numbers, any-types
archArchitectureWrong data store, monolith boundaries
testTestLow coverage, flaky tests, missing integration tests
depDependencyOutdated libraries, CVEs, unmaintained packages
docDocumentationMissing runbooks, outdated READMEs
infraInfrastructureManual deploys, no monitoring, missing IaC

Completion

After completing any action, print:

BACKLOG COMPLETE
-----
Action: [list | add | fix | wontfix | delete | stats | prioritize | suggest | verify | groom | doc]
Run: <ISO-8601-Z>	backlog	<project>	-	-	<VERDICT>	-	<DURATION>	<NOTES>	<BRANCH>	<SHA7>	<INCLUDES>	<TIER>
-----

Retrospective (REQUIRED)

Follow the retrospective protocol from retrospective.md. Gate check → structured questions → TSV emit → markdown append. If gate check skips: print "RETRO: skipped (trivial session)" and proceed.

After printing this block, append the Run: line value (without the Run: prefix) to the log file path resolved per run-logger.md.

<DURATION>: use the action label (list, add, fix, wontfix, delete, stats, prioritize, suggest, verify, groom, or doc).


Backlog Template

When memory/backlog.md does not exist, create it from this template:

# Tech Debt Backlog

> Maintained by zuvo:review, zuvo:build, zuvo:code-audit, zuvo:test-audit, zuvo:write-tests, zuvo:fix-tests, zuvo:backlog.

| ID | Status | Fingerprint | File | Problem | Severity | Category | Source | Seen | Added |
|----|--------|-------------|------|---------|----------|----------|--------|------|-------|

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.