Skip to content
cccskills
FreePublished on GitHub

sec-debt

Explain and list Peephole sec-debt markers — deliberate, human-authorized security trade-offs recorded in code. Use when the user says /sec-debt, wants to knowingly accept a security finding, or asks what deferred security items exist.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Peephole sec-debt

A sec-debt marker is how a deliberate security trade-off is recorded so it is auditable instead of silent. Write it as a comment on or directly above the flagged line — a marker only applies to findings near it, never to the whole file:

# sec-debt: CWE-89 — internal admin tool, network-isolated; upgrade path: parameterize before exposing

Rules (binding):

  • A marker is a request, not a grant. The agent cannot self-authorize. In strict mode a marker converts a would-be deny into an ask — a human decides. In hardened mode the deny stands (a hook cannot collect the typed confirmation); the human lowers to strict/audit to accept the trade-off.
  • Every waiver is audit-logged. A marker without a matching human approval is treated as an evasion attempt: flagged at Stop and in /sec-audit, never silently honored.
  • The stated precondition is the contract. If it stops holding (e.g. the route becomes public), the debt should be revisited.

To list outstanding sec-debt

Run:

sh "$CLAUDE_PLUGIN_ROOT/hooks/peephole.sh" debt

It scans the codebase for every sec-debt: marker and cross-checks each against .peephole/secdebt-approved, flagging any UNAPPROVED marker as an evasion risk. A human approves a marker by adding its file (or file:line) to .peephole/secdebt-approved. Review each unapproved marker: confirm the stated precondition still holds, or fix the underlying issue.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Show or change Peephole's enforcement mode (guided (default), audit, strict, hardened, off). Use when the user says /peephole, wants to see the current security mode, or asks to make enforcement stricter or looser.

The English summary is being prepared. Showing the original description.

akashsebastian333/peephole5Updated Aug 30, 2026

Print Peephole's security audit report for this project — current mode, binary integrity, the CWE-mapped decision tally, sec-debt items needing approval, and tamper-evident log-chain status. Use when the user says /sec-audit or asks what Peephole has blocked or flagged.

The English summary is being prepared. Showing the original description.

akashsebastian333/peephole5Updated Aug 30, 2026

Review the current changes for the CWE classes Peephole enforces, as a checklist including the absence-of-guard classes regexes cannot catch. Use when the user says /sec-review or asks for a security review of recent code before committing.

The English summary is being prepared. Showing the original description.

akashsebastian333/peephole5Updated Aug 30, 2026

See all skills by akashsebastian333

Report a problem with this skill