agentsclimarketplace

Tars backlog audit

Skill MAHDTech/agent-skills/skills/planning/tars-backlog-audit

Audit the codebase for bugs, features, security issues, or technical debt, and generate structured issue files in `.tars/issues/todo/`. Reach for this when requested to perform a codebase audit, search for bugs and tasks, or populate the backlog.From its SKILL.md

Install
npx -y skills add MAHDTech/agent-skills --skill tars-backlog-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.8 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

Backlog Audit

Audit the codebase to identify bugs, features, security issues, or technical debt, and generate structured backlog tickets.

This skill operates in a Hub-and-Spoke topology using sub-agents to analyze codebase modules in parallel, and then synthesizes the results.

Targets and Paths

  • All issue tickets are stored locally relative to the project root in .tars/issues/todo/
  • Standard ticket folders also include .tars/issues/done/ and .tars/issues/failed/
  • Ticket files are saved only to disk. Since .tars/ must be gitignored, do NOT stage, commit, or force-add ticket files to git.

Topic Branch Workflow (Hub Only)

All backlog operations must run from a topic branch, never the default branch, and every spawned subagent branches off that active topic branch. See the canonical Topic Branch Verification section in tars-backlog-prepare for the full policy and commands.

Audit Workflow

1. Codebase Segmentation

Analyze the project's directory structure (by listing directories or inspecting the workspace files) and dynamically partition the codebase into up to 5 logical modules (e.g., frontend, backend handlers, shared configs, hooks, CI/CD pipelines).

2. Spawn Spokes

Spawn read-only research subagents (up to a maximum of 5 in parallel) to audit each identified module, each on its own isolated workspace/branch.

Equip each subagent with:

  • Role: Audit-<MODULE_NAME> (substitute a short, alphanumeric descriptor of the audited module)

  • Prompt:

    You are auditing the following codebase module: <MODULE_PATH_OR_GLOB>
    
    Deeply analyze it for:
    1. Bugs & Issues: Edge cases, unhandled errors, TOCTOU/race conditions, and security vulnerabilities.
    2. Maintainability, Naming & Style: Code smells, duplicate logic, or formatting/naming style violations *only if they violate repository formatting/naming standards* (e.g. eslint rules, prek check configs, or guidelines in AGENTS.md). Avoid logging subjective preferences that are not backed by repository standard configurations.
    3. Automated Testing: Test coverage gaps, missing integration suites, and fragile mock patterns.
    4. Features & Enhancements: Programmatic tools or utility endpoints that would improve user/agent experience.
    
    STRICT ISOLATION CONSTRAINT: You must NEVER check out the default branch, active topic branch, commit directly to them, or attempt to merge branches. You must operate strictly within your local isolated workspace.
    
    Verification & Output Format:
    - If the module is clean, stable, and conforms fully to the above criteria, reply with exactly:
      NO_ISSUES_FOUND
    - Otherwise, for each finding, you must verify the existence of the issue in the codebase and output it using this Markdown template:
      ### Finding: <Short Title>
      - **File**: <FilePath> (relative to project root)
      - **Lines**: <LineRange> (e.g. 42-55)
      - **Snippet**:
        ```<language>
        <exact code snippet from the file>
        ```
      - **Description**: <Detailed explanation of the issue, what standard/spec it violates, and how to fix it.>
    

3. Synthesis & Ticket Generation (Hub Only)

Once the subagents report back, collect all findings:

  1. Verify Findings (CRITICAL ANTI-HALLUCINATION CHECK):
    • For each reported finding, the Hub must verify the existence of the file and inspect the referenced line range in the codebase.
    • Confirm that the actual code in the parent repository matches the provided snippet and contains the reported issue.
    • Discard any findings that fail this check, contain fabricated files/lines, or represent subjective styling preferences not violating repository standard files.
  2. Deduplicate: Combine overlapping findings.
  3. Filter: Check against existing tickets in .tars/issues/todo/, .tars/issues/done/, and .tars/issues/failed/ to avoid duplicates.
  4. Determine ID (CRITICAL FOR COLLISION PREVENTION):
    • Scan all three folders: .tars/issues/todo/, .tars/issues/done/, and .tars/issues/failed/ (if any folders do not exist, treat them as empty).
    • Find all files in these directories that match the 3-digit pattern XXX.md (where XXX is a number like 001, 042, etc.).
    • Extract the numeric ID from each file name (e.g., 042.md corresponds to 42).
    • Find the absolute maximum ID used across all three folders.
    • The ID for the first new issue must be max_id + 1 (e.g., if the highest is 042.md, the next must be 043.md).
    • CRITICAL: Never assume the backlog starts at 001 or overwrite existing issue files. Only start at 001 if all three folders are completely empty or do not exist.
    • Allocate subsequent new tickets sequentially (e.g., 043.md, 044.md, 045.md).
  5. Generate Tickets: For each verified finding, write a new ticket file to .tars/issues/todo/ following the guidelines and structure defined in the tars-backlog-create-issue skill.
    • Filename: XXX.md (3-digit ID, padded with leading zeros, e.g., 043.md)
  6. No Findings Output: If no findings were reported or all were discarded during verification, output a clear status message to the user: "Audit complete. The codebase is clean, stable, and conforms to all standards. No new issues were logged."
  7. CRITICAL CLEANUP CONSTRAINT: As the Hub, you MUST clean up each subagent's worktree and branch immediately, regardless of whether the subagent succeeded, failed, or timed out. Failure to do so will break future iterations.
    • Run git worktree remove --force <path>
    • Run git branch -D <branch-name>

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,790. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.