kramme-cc-workflow/skills/kramme:code:weakness-audit/SKILL.md
Identify the biggest codebase weaknesses across maintainability, readability, and correctness using a multi-agent audit team by default, then write a ranked CODEBASE_WEAKNESS_REPORT.md. Use when the user asks for top weaknesses, codebase health risks, maintainability/readability/correctness audit, or where to invest cleanup effort. Use --solo only for a faster single-threaded fallback. Not for PR-only review, implementation, security-specific audits, or broad refactor opportunity inventories.
npx skillsauth add abildtoft/kramme-cc-workflow kramme:code:weakness-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Identify the highest-leverage weaknesses in a codebase across maintainability, readability, and correctness, then produce a ranked report.
Arguments: "$ARGUMENTS"
What it touches: writes one report file, CODEBASE_WEAKNESS_REPORT.md by default. Read-only otherwise. Do not modify implementation code.
Team mode is the standard workflow. Unless $ARGUMENTS contains --solo, remove an optional compatibility --team flag if present, read references/team-mode.md, and follow that workflow instead of the solo fallback below. Pass the remaining arguments through as the team-mode arguments.
If $ARGUMENTS contains --solo, remove that flag and follow the solo fallback workflow below. Use --solo only for small scopes, constrained runtimes, or when multi-agent execution is unavailable.
full. Accept full, path <file-or-folder>, feature <name>, --scope full, --scope path <file-or-folder>, or --scope feature <name>.--output <path>. Default is CODEBASE_WEAKNESS_REPORT.md in the project root. Refuse paths outside the working tree unless the user explicitly confirms.--max-findings N. Default is 20; cap at 30 unless the user explicitly asks for a broader inventory. Team mode should collect a broader raw candidate pool before final filtering; this cap applies only to active ranked findings in the final report.--base <ref> only for change-history context. This skill is not PR scoped; use /kramme:pr:code-review for PR-only review.--team is accepted as a no-op compatibility flag and removed before parsing.--solo. Handled by the Execution Mode section above and removed before normal input parsing.If the arguments contain multiple scope selectors, pause and ask for one scope. If a path-shaped argument does not resolve, ask for clarification instead of treating it as a feature name.
This workflow is only for explicit --solo runs or constrained runtimes. Default audits should use the multi-agent workflow in references/team-mode.md.
SCOPE_MODE, SCOPE_TARGET, OUTPUT_PATH, and MAX_FINDINGS.package.json, tsconfig.json, pyproject.toml, Cargo.toml, go.mod, pom.xml, build.gradle, framework configs, test configs, lint configs, and CI workflow files.AGENTS.md, CLAUDE.md, .github/copilot-instructions.md, or equivalents) and apply their conventions during the audit.docs/decisions/, docs/adr/, doc/adr/, architecture/decisions/). Store accepted decisions as constraints. Do not flag a weakness that merely contradicts an accepted decision unless new evidence shows the trade-off has shifted.UBIQUITOUS_LANGUAGE.md, GLOSSARY.md, docs/glossary.md) and use canonical domain terms in finding titles.CODEBASE_WEAKNESS_REPORT.md, REFACTOR_OPPORTUNITIES_OVERVIEW.md, AGENT_NATIVE_AUDIT.md, REVIEW_OVERVIEW.md) only as context. Do not copy findings without re-validating evidence in the current tree..git, .context, node_modules, virtualenvs, and framework build caches.full, scan the main source, test, configuration, and documentation entry points. Avoid spending audit budget on examples, fixtures, and snapshots unless they drive production behavior.path, include only the resolved files or files under the resolved directory.feature, search route names, package names, module names, schemas, tests, docs, flags, and user-facing copy. If the feature maps to multiple unrelated areas or cannot be located, present the candidate groups and ask before continuing.Read references/audit-rubric.md before recording findings.
Scan through three lenses in the main thread. Default multi-agent audits use references/team-mode.md; this section is intentionally lower coverage.
Each raw candidate must include:
MAX_FINDINGS remain, keep only the top-ranked findings and list the rest as filtered or follow-up candidates.references/audit-rubric.md.WA-001, WA-002, ... after sorting.assets/report-template.md.OUTPUT_PATH, overwriting any previous report at that path. Include the resolved scope and date in the header so an overwritten report remains understandable./kramme:code:breakdown-findings when turning validated findings into implementation plans, and by follow-up audit runs for comparison.Reply with:
CODEBASE_WEAKNESS_REPORT.md by default, or the path passed with --output./kramme:code:breakdown-findings for PR-sized implementation planning; future runs for comparison context./kramme:workflow-artifacts:cleanup when the report is no longer useful, or manual deletion.tools
Requires Linear MCP. Implements one Linear issue end to end, selects applicable code-review, convention, and PR-refactor gates, runs them to bounded convergence, verifies, and optionally opens the PR and iterates on CI and review feedback until green. Use when the user wants a single Linear issue taken from implementation through a clean Pull Request. Not for implementation-only work, SIW-tracked issues, stacked PRs, existing PR updates, or post-merge rollout.
development
Reviews PR and local changes for convention drift and overcaution against documented rules and mined peer-file practice. Use for new patterns, dependencies, abstractions, or defensive complexity that departs from established practice; every finding cites evidence. Supports --inline. Not for general code quality (use kramme:pr:code-review) or spec review (use kramme:siw:spec-audit --team).
testing
Charts huge or foggy initiatives into a local `.context` decision map and resolves one typed frontier ticket per session until the work is ready for SIW or another execution workflow. Use when the route to a destination cannot fit in one agent session or parallel workspaces need coordinated planning state. Not for clear specs, ordinary issue decomposition, implementation, or Linear-native tracking.
development
Investigates a question against primary sources and saves one cited Markdown artifact. Use for reading legwork: official docs/API facts, source-code or spec checks, standards, and first-party service behavior before planning or implementation. Not for making product or architecture decisions, implementing code, broad web search, secondary blog summaries, or uncited answers.