Claude Skill

reasoning-semiformally

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

LLM Mart · 0 points · 1 views 0 listing impressions 0 install-command copies
Download oaustegard-claude-skills-plugins_code-intelligence_skills_reasoning-semiformally-5d67576.zip · 6 KB

Install

skills CLI npx skills add https://github.com/oaustegard/claude-skills/tree/main/plugins/code-intelligence/skills/reasoning-semiformally
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install oaustegard-claude-skills@llmmart
Git git clone https://github.com/oaustegard/claude-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole oaustegard/claude-skills collection as a plugin from our marketplace. Git is the plain clone.

README

Semi-Formal Code Reasoning

Structured certificate templates for code analysis, based on Ugare & Chandra (2026).

Provenance

  • Paper: Ugare & Chandra, "Agentic Code Reasoning with Semi-Formal Certificates" (arXiv:2603.01896, March 2026)
  • Replication: Django name-shadowing (0%→100% fault localization), 3 real bugs (+11pp aggregate)
  • CVE validation: CVE-2026-29000 (pac4j-jwt, 383 lines). Haiku: +20pp with template. Sonnet: -20pp with template.
  • Finding: Template value is model-capability-dependent. Scaffolding helps weaker models; it becomes overhead for stronger ones.

Structure

File Audience Purpose
SKILL.md All models Thin router: skip conditions + model-tier routing
sonnet.md Sonnet/Opus 3 compact verification checkpoints
haiku.md Haiku Full procedural templates with worked examples

Skill manifest

Semi-Formal Code Reasoning

Structured certificate templates that force mandatory checkpoints before conclusions.

Skip Conditions

Do NOT apply semi-formal reasoning when:

  • The change is trivial: docs, formatting, version bumps, config changes
  • The bug is locally obvious: typo, off-by-one in the same function, missing comma
  • No execution paths cross scope boundaries
  • The task is not code analysis (text editing, data extraction, summarization)

If any skip condition is met, proceed with standard reasoning.

Model-Specific Instructions

If you are Haiku-class (Haiku 4.5, Haiku 5.5): Read haiku.md in this skill directory. It contains full procedural templates with worked examples.

If you are Sonnet-class or above (Sonnet 5, Sonnet 5.5, Opus, Fable): Read sonnet.md in this skill directory. It contains compact verification checkpoints.

Composing Tasks

For complex tasks, apply templates sequentially:

  1. Fault localization to find the bug
  2. Patch verification to validate a proposed fix
  3. Patch equivalence to compare alternative fixes

Each output feeds the next as premises.

Files (claude-skills)
  • CHANGELOG.md 840 B
    Loading…
  • haiku.md 9.8 KB
    Loading…
  • README.md 879 B
    # Semi-Formal Code Reasoning
    
    Structured certificate templates for code analysis, based on Ugare & Chandra (2026).
    
    ## Provenance
    
    - Paper: Ugare & Chandra, "Agentic Code Reasoning with Semi-Formal Certificates" (arXiv:2603.01896, March 2026)
    - Replication: Django name-shadowing (0%→100% fault localization), 3 real bugs (+11pp aggregate)
    - CVE validation: CVE-2026-29000 (pac4j-jwt, 383 lines). Haiku: +20pp with template. Sonnet: -20pp with template.
    - Finding: Template value is model-capability-dependent. Scaffolding helps weaker models; it becomes overhead for stronger ones.
    
    ## Structure
    
    | File | Audience | Purpose |
    |------|----------|---------|
    | `SKILL.md` | All models | Thin router: skip conditions + model-tier routing |
    | `sonnet.md` | Sonnet/Opus | 3 compact verification checkpoints |
    | `haiku.md` | Haiku | Full procedural templates with worked examples |
    
  • SKILL.md 1.5 KB
    ---
    name: reasoning-semiformally
    description: 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.
    metadata:
      version: 0.4.0
    ---
    
    # Semi-Formal Code Reasoning
    
    Structured certificate templates that force mandatory checkpoints before conclusions.
    
    ## Skip Conditions
    
    Do NOT apply semi-formal reasoning when:
    - The change is trivial: docs, formatting, version bumps, config changes
    - The bug is locally obvious: typo, off-by-one in the same function, missing comma
    - No execution paths cross scope boundaries
    - The task is not code analysis (text editing, data extraction, summarization)
    
    If any skip condition is met, proceed with standard reasoning.
    
    ## Model-Specific Instructions
    
    **If you are Haiku-class (Haiku 4.5, Haiku 5.5):**
    Read `haiku.md` in this skill directory. It contains full procedural templates with worked examples.
    
    **If you are Sonnet-class or above (Sonnet 5, Sonnet 5.5, Opus, Fable):**
    Read `sonnet.md` in this skill directory. It contains compact verification checkpoints.
    
    ## Composing Tasks
    
    For complex tasks, apply templates sequentially:
    1. **Fault localization** to find the bug
    2. **Patch verification** to validate a proposed fix
    3. **Patch equivalence** to compare alternative fixes
    
    Each output feeds the next as premises.
    
  • sonnet.md 1.5 KB
    Loading…

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.