torque-loop: Skill for Claude Code

.claude/skills/skill-forge/SKILL.md

skill-forge is a skill for Claude Code from Megaprompting/torque-loop. It costs 90 tokens per session (1,168 once invoked), scanned A, original, MIT.

A workflow for adding or changing a Ratchet command across all the project files that describe and check it. Ratchet commands are project-specific development steps such as planning or testing routines.

In plain words
What is it for?
Use it when creating a new Ratchet skill or changing an existing one. It updates the command prompt, skill instructions, README catalogue, templates when needed, and shape tests.
Why use it?
It prevents the command's instructions, documentation, templates, and automated checks from drifting apart. Changing only one copy can leave the project inconsistent.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is Megaprompting/torque-loop's own configuration. It tells Claude Code how to work on torque-loop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything torque-loop configures →

Part of the ratchet plugin — 17 skills, 3 agents, 3 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Megaprompting/torque-loop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Megaprompting/torque-loop/main/.claude/skills/skill-forge/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Megaprompting/torque-loop

Made for: Claude Code.

Or install ratchet, the plugin that ships this one along with the rest of its 17 skills, 3 agents, 3 hooks.

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 skill-forge

README.md
[![agentmods](https://agentmods.dev/badge/skills/megaprompting/torque-loop/skill-forge/github.svg)](https://agentmods.dev/skills/megaprompting/torque-loop/skill-forge)
Your own site
<a href="https://agentmods.dev/skills/megaprompting/torque-loop/skill-forge"><img src="https://agentmods.dev/badge/skills/megaprompting/torque-loop/skill-forge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-forge

Your own site · 80×15
<a href="https://agentmods.dev/skills/megaprompting/torque-loop/skill-forge"><img src="https://agentmods.dev/badge/skills/megaprompting/torque-loop/skill-forge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00090 $0.01168
Opus 5.5 $0.00036 $0.00467
Sonnet 5.5 $0.00018 $0.00234
Haiku 4.5 $0.00009 $0.00117

Measured 3mo ago against content hash 9f6fbfb72569, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-forge 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 3mo 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/skill-forge/SKILL.md · 120 lines

How it starts

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

/skill-forge — one command, every surface

A /ratchet:* command is not a file; it is a contract spread across four synced surfaces — reference/PROMPTS.md (intent), skills/<name>/SKILL.md (procedure), README.md (catalog), and test/plugin-shape.test.js (drift police) — plus templates/ when the command produces a file-shaped record. Editing one surface and not the others is the repo's most common failure mode. This skill walks them in dependency order: intent first, procedure second, catalog third, guard last.

Step 0 — Ground truth

ls skills/
grep -n "<command-name>" reference/PROMPTS.md README.md test/plugin-shape.test.js

Read the two nearest-neighbor skills (for a gate-like command: skills/map/SKILL.md, skills/build/SKILL.md) — the new skill must read like it was written the same day.

Step 1 — Canonical prompt (PROMPTS.md) — the source of truth, written FIRST

  • Add the prompt as a fenced text block in reference/PROMPTS.md, in the imperative copy-paste voice of the existing twelve ("Produce the artifact now." / "Map the fog before you build.").
  • Add a row to the Command ↔ prompt map table.
  • If the mechanism is grafted from elsewhere: general mechanism, own words — rewrite in ratchet vocabulary and note provenance (aperture-dial precedent).
  • Rule to preserve: the prompt must force pressure — a choice, an artifact, a test, a patch, serialized state, a killed option, or a push. If it only produces insight, it is not a ratchet command; stop and say so.

Step 2 — SKILL.md in the house shape

skills/<name>/SKILL.md, exactly this skeleton:

---
name: <name>
description: <verb-first pitch. Use when <trigger>. <what it produces / refuses>.>
argument-hint: "[...]"        # only if it takes arguments
---

# /ratchet:<name> — <tagline>

<2–3 sentences: why this command exists, what failure it prevents.>

## Step 0 — Load state

ratchet status


## Procedure
<numbered, imperative, bolded key rules. Prompt-level tripwires welcome, but never
claim they are enforced — enforcement is the CLI's job.>

## Output contract

<FIXED-SHAPE block — same sections every run, emptiness stated>


## Serialize

ratchet <exact commands — artifact add / state append / state set phase>


<closing line naming the NEXT move — no ratchet skill ends in analysis.>

Read the full file on GitHub · 120 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. 3mo ago First seen · 120 lines · 90 tokens per session scan A 9f6fbfb72569

Subscribe to this mod's changes

skill-forge is a skill published in the GitHub repository Megaprompting/torque-loop (10 stars, last pushed 20d ago), licensed MIT. It adds 90 tokens to every session and 1,168 once invoked, about $0.0004 per session on Opus 5.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

skill-forge compared with skills from other repositories

skill-forge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-forgeMegaprompting/torque-loopSkill1020d agoMITA90Claude Code
ctxagentis-tools/ctxSkill13yesterdayApache-2.0A60Claude Code
ctxagentis-tools/ctxSkill13yesterdayApache-2.0A60Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
omh-rustrlaope/oh-my-hermesSkill6.2ktodayMITA19Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
redteam-web-detail-packNetw0rkNoob/VulnClawSkill4.0k1mo agoMITA38Claude Code, Codex