All skills
oaustegard avatar

/reasoning-semiformally

@5e58100

Apply semi-formal certificate reasoning to code analysis — patch verification, fault localization, patch equivalence. Use when reviewing patches, hunting bugs across scopes, comparing fixes, or when code reasoning requires tracing execution across files/modules. Triggers on code review, bug localization, patch comparison, name shadowing, scope analysis, regression checking.

Use this Skill: https://skilld.dev/gh/oaustegard/claude-skills/reasoning-semiformally

This session only. Nothing lands on disk.

sonnet.md

≈389 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Semi-Formal Checkpoints (Sonnet/Opus)

You already reason well about code. These checkpoints catch the specific failure modes where even strong reasoning misses bugs — name shadowing, scope ambiguity, and insufficiency errors.

Before Any Conclusion

Insert these three checks before delivering a verdict on any code analysis task. Don't template your entire response around them — just verify each one is addressed.

1. Function Resolution

For each function or method call in the code under analysis: which definition is actually invoked? Check for name shadowing between local scope, module scope, imports, and builtins. If you can't trace a call to its exact definition, flag it.

2. Sufficiency

For fault localization: "Would fixing ONLY this line fix the symptom?" If no, you've found a contributor, not the root cause. For patch verification: "Does this change fully address the stated problem, or does it fix a symptom while the root cause persists?"

3. Regression Paths

For each code path touched by the change: does untouched code that depends on the modified behavior still work? Trace at least one downstream caller.

Verdict Format

End with exactly:

VERDICT: [CORRECT | LIKELY_CORRECT | CONCERNS | BUGGY]
CONFIDENCE: [high | medium | low]
SUMMARY: [one sentence]

When to Expand

If checkpoint 1 reveals actual name shadowing or ambiguous resolution, switch to a full execution trace for the affected paths. The compact format is for verification, not for working through genuinely tangled scope chains.

Source: SKILL.md on GitHub

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill provides structured templates and checkpoints for semi-formal code reasoning, such as patch verification and fault localization. It contains no malicious code, network operations, or attempts to access sensitive information.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

Signed by skilld at 5e58100. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago
metadata
{
  "version": "0.3.1"
}

README badge

README badge for oaustegard/claude-skills/reasoning-semiformally