sdcorejs-repair-loop

sdcorejs-repair-loop is a skill for Claude Code, Codex from sdcorejs/sdcorejs-agent. It costs 88 tokens per session (1,803 once invoked), scanned A, original, MIT.

A bounded workflow for fixing selected problems found during reviews, tests, checks, or human feedback. It preserves the original evidence and verifies the result after the repair.

In plain words
What is it for?
Use it to repair findings from code reviews, tests, linters, type checks, manual checks, delivery checks, and supported product, design, documentation, or workflow work.
Why use it?
It prevents fixes from becoming open-ended or losing track of why a change was made. The work stays within the correct owner, approved files, and limited number of attempts.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loop
Any agent
npx skills add sdcorejs/sdcorejs-agent --skill sdcorejs-repair-loop
Clone the repo
git clone --depth 1 https://github.com/sdcorejs/sdcorejs-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sdcorejs-repair-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loop.svg)](https://agentmods.dev/skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loop)
Your own site
<a href="https://agentmods.dev/skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loop"><img src="https://agentmods.dev/badge/skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00088 $0.01803
Opus 5 $0.00044 $0.00901
Sonnet 5 $0.00018 $0.00361
Haiku 4.5 $0.00009 $0.00180

Measured 3d ago against content hash fd839c80c922, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sdcorejs-repair-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/sdcorejs-repair-loop/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repair Loop

Shared Protocols

Read _refs/shared/runtime-protocols.md and load only the references needed by the scoped finding.

Thin dispatch skill for applying findings and re-verifying them. The detailed loop lives in _refs/orchestration/tail/repair-loop.md.

Resolve supported tracks from _refs/shared/system-registry.json; do not keep a framework-only enum. Validate every repair with _refs/orchestration/repair-contract.mjs, which binds the original evidence, artifact/implementation owner, execution host, approved write scope, bounded attempts, and repaired evidence linkage.

Workflow

  1. Determine and preserve the source of findings: review-code, external-review-feedback, verify-before-done, linter, typecheck, test, or manual.
  2. Read _refs/orchestration/tail/repair-loop.md completely.
  3. If the source is sdcorejs-review, preserve the original review_context exactly, including track, track_profile, dimensions, mode, file_scope, refs loaded/skipped, probes run/skipped, and package manager. Preserve any test_context, test_status, test_evidence, ui_capture_context, ai_agent_context, simplify_context, convention_context, and artifact_context exactly as source evidence; append new run/case evidence after repair instead of overwriting or upgrading stale/blocked results.
  4. Record the working-tree baseline and a visible Repair ledger before edits.
  5. Verify each finding is genuine before changing code and classify it as VALID, STALE, MIS-SCOPED, REDUNDANT, UNCLEAR, or CONFLICTING. For external feedback, preserve review ID/reviewer/base revision/file scope and sanitized original feedback, re-read current evidence, then use evaluateExternalReviewFeedback; evidence must bind repository, current revision, safe path, locator, and content hash through the trusted snapshot. Classification fields, normalized conflicts, proposed-change kind, and any migration-decision identity must match a canonical repair-review-assessment:v1 artifact from the independent verifier. Caller relabeling or decision substitution invalidates write eligibility. An incorrect claim receives cited technical pushback and no write.
  6. Categorize valid findings into auto, confirm, or user-decision tiers. A review finding must also be explicitly selected for repair and carry matching artifact-backed write authority; confirm and user-decision tiers require their own actor-, finding-, revision-, kind-, and scope-bound approval. Resolve {artifact_ref, approval_hash} only from the trusted approval_artifacts loader and verify its canonical artifact hash; a nonexistent reference, inline body, review output, or boolean is not authorization.
  7. For a single VALID finding that becomes a concrete bug investigation, call sdcorejs-debug with the preserved repair_source, review_context, finding ID/source, original commands, and package-manager evidence; consume its redacted debug_context before continuing.
  8. Apply only inside the intersection of feedback, finding, and owner-approved scopes. Resolve current and repaired paths, locators, revisions, and hashes from a canonical trusted repository-snapshot artifact. Record a nonempty pre/post hash manifest and independently compared test-contract hashes/ assertion IDs, then derive validation status from a canonical trusted command receipt for the exact source-specific command. Use the smallest relevant discovered command first and associate new evidence with the repaired diff.
  9. Iterate until blocking findings are fixed, explicitly deferred, or the reference's 3-pass convergence cap is reached. Blocking means Critical/Important in the default review format, or BLOCKER/REQUIRED in Angular/NestJS code-review table mode.

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 116 lines · 88 tokens per session scan A fd839c80c922

Subscribe to this mod's changes

sdcorejs-repair-loop is a skill published in the GitHub repository sdcorejs/sdcorejs-agent (2 stars, last pushed 17d ago), licensed MIT. It adds 88 tokens to every session and 1,803 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens