Skip to content
Agentmart
Submit a tool

touchstone-audit-weak-points

Use after finding a structural bug to systematically audit the codebase for the same anti-pattern, fix instances by tier, and add a guardrail that catches the…

Skill by autumngarage

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/autumngarage-touchstone-audit-weak-points

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use after finding a structural bug to systematically audit the codebase for the same anti-pattern, fix instances by tier, and add a guardrail that catches the next one before it ships.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/touchstone-audit-weak-points

What's inside

Skill name
touchstone-audit-weak-points
Description
Use after finding a structural bug to systematically audit the codebase for the same anti-pattern, fix instances by tier, and add a guardrail that catches the next one before it ships.
License
MIT
Instructions
44 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Audit Weak Points

When you find a structural bug, the same pattern is almost certainly repeated elsewhere. The copies you don't find now will surface later — usually in a worse place.

When the preceding review fix created the defect, stop before editing again: revert or simplify to the last known-good design, then search and classify the weak-point class. This audit is not permission to patch the failed implementation forward or absorb every sibling into the current PR.

## When to invoke

This skill activates when a bug points at a *class* of problem rather than a single instance:
- "stale data contamination" found in one cache → probably in others
- "hardcoded resource list instead of registry lookup" in one file → probably elsewhere
- "file-persisted state on a read-only filesystem" in one path → probably elsewhere
- "hardcoded absolute values instead of ratios"
- "silent exception swallowing" — same anti-pattern, different files

Don't invoke for one-off bugs (typos, narrow logic errors). Invoke when the fix you just wrote feels like it could apply to N other files.

## The methodology (six steps)

1. **Identify the pattern.** Name it precisely. Vague names produce vague audits. "Functions returning None on error without logging" is auditable; "error handling problems" is not.

2. **Search until the reviewed surface is explicit.** Use grep, AST tools, or an exploration agent. State what you searched (queries, tools, directories) and what you intentionally left out of scope. "Exhaustive" is unverifiable; "reviewed and bounded" is. The most dangerous instances are in code paths you weren't looking at — cast wide and make coverage legible.

3. **Produce a ranked punch-list.** Sort by *production impact*, not ease of fix. The instance that silently corrupts data in a hot path matters more than the one in a rarely-used utility.

4. **Fix in tiers, and track the tail.** Start with the highest-impact instances. Don't try to fix everything in one PR — large blast radius increases review and rollback risk. If you split across PRs, commit the ranked list somewhere durable (issue, ADR, follow-up task) so the lower-priority instances don't get abandoned. **Land the guardrail in the first PR** — it stops new copies while you work through the existing ones.

5. **Reset contaminated state where filtering doesn't work.** Some derived state (trained models, accumulated statistics, cached computations) can't be filtered to exclude pre-fix data — it has to be rebuilt from scratch. Identify these cases explicitly.

6. **Add a guardrail.** Write a test or lint rule that catches the next instance of the pattern before it ships. This is the step that turns a one-time fix into a permanent improvement. Options:
   - AST-based test that scans for the anti-pattern
   - Lint rule (custom or built-in)
   - Integration test exercising the failure mode
   - Import-time assertion validating an invariant

## Why this matters

Without the audit, you fix one bug and leave N copies alive. Without the guardrail, the pattern re-emerges next time someone writes similar code. The audit + guardrail combination is what turns bug-fixing from whack-a-mole into systematic improvement.

## Reference

Full rationale and worked examples: `principles/audit-weak-points.md` (the deeper "why" lives there; this skill is the activation handle).

From autumngarage/touchstone, MIT.

Signals

Stars
0
Forks
0
Open issues
5
Last commit (this folder)
Sep 5, 2026 (1 month ago)
Last release
Oct 22, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from autumngarage

Cite this page

touchstone-audit-weak-points skill. Agent Mart. https://agentmart.dev/skills/autumngarage-touchstone-audit-weak-points (last updated 2026-10-24)