/agent-resources:cleanup-hardenfrom agent-resources
Runs a cleanup and hardening pass covering security fixes, DRY consolidation, dead-code removal, doc drift, dependency audit, error handling, config validation, performance, and repo hygiene without changing user-facing behavior.
Ships in agent-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make the repository smaller, safer, and more accurate without changing behavior users rely on.
If the user named a scope (paths, categories, or "security only"), limit the pass to it. Otherwise run every category in order. For large codebases, finish and report security first, then continue.
- [ ] 0. Baseline: read docs, run lint/typecheck/test/build
- [ ] 1. Security
- [ ] 2. DRY consolidation
- [ ] 3. Orphan cleanup
- [ ] 4. Doc drift
- [ ] 5. Other pruning and hardening
- [ ] 6. Final verification and report
Fix confirmed issues. List anything needing a product decision instead of guessing.
.env files. Check .gitignore. Flag secrets that need rotation; deleting doesn't remove them from history.eval / dynamic Function.dangerouslySetInnerHTML, unescaped templates), CSRF, open redirects, permissive CORS, missing headers (CSP, HSTS, X-Content-Type-Options, Referrer-Policy, frame-ancestors).Content-Type / Content-Disposition when serving user content.npm audit, bun audit, pnpm audit, pip-audit, cargo audit, etc.). Apply safe patch/minor upgrades; list majors separately.Add a regression test for each security fix where the project has tests.
Delete once proven dead:
Use tooling when available (knip, ts-prune, depcheck, vulture, cargo udeps, etc.) but confirm each result manually.
.env.example, and inline docs against the code: endpoints, parameters, defaults, env vars, commands, ports, deploy steps..env.example lists exactly the variables the code reads.catch or swallowed promises; consistent error shapes and status codes; graceful shutdown.any, @ts-ignore, lint-disable comments; enable stricter settings when cheap.robots.txt and sitemap accuracy, broken internal links, accessibility basics (alt text, labels, contrast, focus), dead CSS..gitignore gaps, large binaries, conflicting lockfiles, stale references in docs.Finish with this structure:
## Summary
[What changed, net lines removed]
## Security
- [file] — [severity] — [issue and what an attacker could have done] — fixed
### Needs human action
- [secret rotation, infra change, product decision]
## Changes by category
- Consolidated: ...
- Deleted: ...
- Docs updated: ...
- Hardening: ...
## Not done
- [candidate or refactor] — [reason: couldn't prove dead / risky / major upgrade]
## Verification
| Check | Before | After |
|-------|--------|-------|
| lint | | |
| typecheck | | |
| test | | |
| build | | |
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (jcottam/agent-resources) — no native marketplace selected
npx claudepluginhub p/jcottam-agent-resources14 skills in this plugin
/advisorActivate rigorous, no-nonsense advisory mode for deep analysis, research, critical review, or honest assessment. Use when the user says "advise", "advise me", "give me your honest take", "don't sugarcoat", "be brutally honest", "rigorous mode", "devil's advocate", "second opinion", "challenge this", "stress-test this", "poke holes", "what am I missing", or any variation of wanting unfiltered expert analysis. Also use when the user asks a complex research question, requests a critical review of a plan or architecture, or wants a decision evaluated with full intellectual honesty rather than encouragement./babysit-prBabysit review comments on the current branch's pull request. Bugbot comes first: wait for its review, fix each valid finding, commit, and push. Handle every other open comment too, from human reviewers and other bots. Repeat for up to three rounds, or until nothing new is open. Use when the user says "babysit PR", "babysit this PR", "wait for Bugbot", "address review comments", "address Bugbot comments", "loop until Bugbot is clean", or wants open PR feedback fixed without merging./content-wireframeDraft a content wireframe for a website or page before any design or code. Produces a structured markdown document with real copy, section intent, and open decisions — approved by the user before implementation begins. Use when the user says "content first", "wireframe the copy", "words before design", "start with the content", "what should the page say", or when a website project lacks finalized copy and is jumping straight to visuals.Other plugins' skills for the same job