Forge code
Find correctness, maintainability, type-safety, error-handling, and dead-code risks in changed and critical paths. Activate automatically for source changes when that concern is relevant to a software-engineering request.From its SKILL.md
npx -y skills add is-bo/fullstack-forge-skill --skill forge-codeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 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
4.4 KB, 856 tokens by cl100k_base, as published. Nobody here has run it
forge-code: Code quality
Purpose
Find correctness, maintainability, type-safety, error-handling, and dead-code risks in changed and critical paths.
This is an agent playbook, not a claim of standalone analyzer coverage. Apply
fullstack-forge/references/shared/module-contract.md
for common applicability, evidence, command-safety, mutation, verification, and completion rules.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves code quality, when
the user explicitly names forge-code, or when discovery proves an applicable boundary.
- Source changes
- Release readiness
- Refactoring
When not to activate
- Repositories containing only non-executable documentation
Automated support
Relevant discovery inputs are:
- project profile
- changed-file set
- formatter, linter, and typecheck commands
Available deterministic support, where present:
- Use
detect-project-commandsfor its bounded evidence when present; treat unavailable runtime evidence asNOT_VERIFIED. - Use
run-project-commandfor its bounded evidence when present; treat unavailable runtime evidence asNOT_VERIFIED.
Agent inspection procedure
- Run the project's own formatter, linter, and type checker in check mode and record their exact exit codes and counts.
- Sample the highest-churn and highest-complexity files and inspect error handling, unsafe casts, and unhandled promise paths.
- Search for dead exports, duplicated logic, and TODO/FIXME markers, verifying each candidate is genuinely unreferenced before reporting it.
- Trace resource lifecycles: opened handles, listeners, timers, and subscriptions, and verify each has a close or cleanup path.
- Check the test surface of changed code paths and record which risky functions have no direct test.
Manual inspection requirements:
- Review complex control flow and public API clarity
- Inspect generated or excluded paths not covered by tools
Stack-specific guidance:
- Use the repository's pinned toolchain and scripts
Evidence to collect
For formal findings, also follow fullstack-forge/references/PROTOCOL.md. Record the module's
inspected boundary, relevant tests, direct observations, and unavailable evidence.
Primary standards used as criteria, not proof of compliance:
- NIST SSDF
- language-specific style guidance
Common production failures
- Run available format, lint, type, unit, and build checks without hiding failures
- Inspect boundary validation, error propagation, resource cleanup, concurrency, and unsafe casts
- Compare changes with the newest established local precedent and remove only proven dead code
Missing-control checks
For every applicable criterion below, attach direct evidence or record a reasoned
NOT_APPLICABLE, NOT_VERIFIED, or BLOCKED status. The list is a routing checklist, not
evidence by itself.
- Type safety
- Linting
- Formatting
- Dead code
- Duplicate code
- Excessive complexity
- Unsafe casts
- Unhandled promises
- Resource leaks
- Event-listener leaks
- Deprecated APIs
- Error handling
- Hidden side effects
- Unsafe global state
- Testability
- Naming
- Comments
- TODO and FIXME items
- Generated-code boundaries
- Dependency direction
- Maintainability
- Existing formatter, linter, type checker, and static-analysis commands
Commands and tools
- Run
forge code audit --jsonorfullstack-forge code audit --jsonwhen an explicit audit is requested and the CLI is installed. Normal feature work does not require it. - Use the deterministic support named above only for its documented bounded evidence.
Safe fixes
- Apply deterministic formatting
- Correct proven lint, typing, cleanup, and assertion defects
Approval-required changes
- Changing a public contract or broad behavior during cleanup
Verification
- Run gates after the final edit
- Exercise the affected behavior rather than relying only on compilation
Completion contract
Apply the shared module contract and the module-specific limitations below.
Known limitations
- Static analysis cannot prove runtime behavior or requirement intent
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.