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.
npx agentmods add skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loopnpx skills add sdcorejs/sdcorejs-agent --skill sdcorejs-repair-loopgit clone --depth 1 https://github.com/sdcorejs/sdcorejs-agentWrote 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.
[](https://agentmods.dev/skills/sdcorejs/sdcorejs-agent/sdcorejs-repair-loop)<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>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.
| Model | Per session | Once 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 |
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.
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
- Determine and preserve the source of findings:
review-code,external-review-feedback,verify-before-done,linter,typecheck,test, ormanual. - Read
_refs/orchestration/tail/repair-loop.mdcompletely. - If the source is
sdcorejs-review, preserve the originalreview_contextexactly, includingtrack,track_profile, dimensions, mode,file_scope, refs loaded/skipped, probes run/skipped, and package manager. Preserve anytest_context,test_status,test_evidence,ui_capture_context,ai_agent_context,simplify_context,convention_context, andartifact_contextexactly as source evidence; append new run/case evidence after repair instead of overwriting or upgrading stale/blocked results. - Record the working-tree baseline and a visible Repair ledger before edits.
- Verify each finding is genuine before changing code and classify it as
VALID,STALE,MIS-SCOPED,REDUNDANT,UNCLEAR, orCONFLICTING. For external feedback, preserve review ID/reviewer/base revision/file scope and sanitized original feedback, re-read current evidence, then useevaluateExternalReviewFeedback; 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 canonicalrepair-review-assessment:v1artifact from the independent verifier. Caller relabeling or decision substitution invalidates write eligibility. An incorrect claim receives cited technical pushback and no write. - Categorize valid findings into
auto,confirm, oruser-decisiontiers. A review finding must also be explicitly selected for repair and carry matching artifact-backed write authority;confirmanduser-decisiontiers require their own actor-, finding-, revision-, kind-, and scope-bound approval. Resolve{artifact_ref, approval_hash}only from the trustedapproval_artifactsloader and verify its canonical artifact hash; a nonexistent reference, inline body, review output, or boolean is not authorization. - For a single
VALIDfinding that becomes a concrete bug investigation, callsdcorejs-debugwith the preservedrepair_source,review_context, finding ID/source, original commands, and package-manager evidence; consume its redacteddebug_contextbefore continuing. - 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.
- Iterate until blocking findings are fixed, explicitly deferred, or the reference's 3-pass convergence cap is reached. Blocking means
Critical/Importantin the default review format, orBLOCKER/REQUIREDin Angular/NestJS code-review table mode.
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.
- 3d ago First seen · 116 lines · 88 tokens per session scan A fd839c80c922
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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.
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.
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.
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.
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…