tq-forge-skill
Skill8 starsChanged 5 months agoMITView on GitHub
Force-skill mode — bypass /tq-forge's auto-classification and scaffold a skill directly. Same sandbox + scoring + log path. Use when asked for "/tq-forge-skill", "make a skill that...", "scaffold a skill", or when /tq-forge classified something as an agent but you wanted a skill.
In this repository17 other files it gives its agents.
- handoffSkill
- keep-warmSkill
- savingsSkill
- switchboardSkill
- tq-forge-agentSkill
- tq-forge-agentsSkill
- tq-forge-improve-allSkill
- tq-forge-improveSkill
- tq-forge-learnSkill
- tq-forge-listSkill
- tq-forge-promoteSkill
- tq-forge-queueSkill
- tq-forge-resumeSkill
- tq-forge-scanSkill
- tq-forgeSkill
- tq-forge-statusSkill
- tq-forge-testSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Check the halt flag: If $TQ_FORGE_HOME/halt.flag exists, queue the intent and exit:
- Very specific: line 64
Write it: Use the Write tool. Path: $SANDBOX_SKILLS/<slug>/SKILL.md.
- Very specific: line 90
Don't write SKILL.md anywhere outside the sandbox.
- Very specific: line 92
If allowed-tools lists a tool the host doesn't grant, the skill silently fails when invoked.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/tq-forge-skill — force-skill scaffold
When to use
You know you want a skill (a one-shot procedure callable as /<name>), not an
agent. Either /tq-forge classified the intent ambiguously, or you're skipping
the classifier entirely.
Procedure
export TQ_FORGE_HOME="${TQ_FORGE_HOME:-$HOME/.tq-forge}"
S="${CLAUDE_PLUGIN_ROOT:-${TQ_FORGE_HOME:-$HOME/.tq-forge}/install}/scripts"
source "$S/common.sh" && tq_ensure_home- Check the halt flag. If
$TQ_FORGE_HOME/halt.flagexists, queue the intent and exit:test -f "$TQ_FORGE_HOME/halt.flag" && bash "$S/forge-checkpoint.sh" queue "<intent>" && exit 0 - Pick a slug. Lowercase, hyphenated, <=32 chars. Use an explicit slug if the user gave one; else derive it. Confirm if ambiguous.
- Check for collisions.
On a collision, ask: fork (for d in "$CLAUDE_SKILLS_DIR/<slug>" "$SANDBOX_SKILLS/<slug>"; do test -e "$d" && echo "EXISTS: $d" done<slug>-v2), edit the existing one, or abort. - Create the directory.
mkdir -p "$SANDBOX_SKILLS/<slug>" - Compose the SKILL.md using
${CLAUDE_PLUGIN_ROOT:-${TQ_FORGE_HOME:-$HOME/.tq-forge}/install}/templates/SKILL.md.tmplas the shape: frontmatter (name,descriptionwith "Use when…",allowed-tools),## When to use(2-3 sentences),## Procedure(numbered, copy-pasteable commands),## Pitfalls(real ones),## Verification,## Tags. Target 200-800 words. To start from a deterministic stub instead, runbash "$S/scaffold.sh" skill "<intent>" --model <fable|opus|sonnet|haiku> --effort <level>and replace every placeholder marker the stub contains. Set--modelonly when the skill needs a specific model; the scorer fails a stub that still has placeholders. - Write it. Use the Write tool. Path:
$SANDBOX_SKILLS/<slug>/SKILL.md. - Score it.
bash "$S/quality-score.sh" "$SANDBOX_SKILLS/<slug>" bash "$S/dry-test.sh" "$SANDBOX_SKILLS/<slug>" - If quality score < 7, identify the weakest dimension from the per-dim
output, rewrite just that section, write again, re-score. ONE refine
attempt. If still <7:
bash "$S/forge-checkpoint.sh" review "<slug>" "<weak-dim>" "<score>" - Append to skill-log.json.
python3 -c "import json,datetime,pathlib,os;p=pathlib.Path(os.environ['TQ_FORGE_HOME'])/'skill-log.json';d=json.loads(p.read_text() or '[]');d.append({'slug':'<slug>','kind':'skill','score':<S>,'at':datetime.datetime.now(datetime.timezone.utc).isoformat(),'intent':'<intent>','status':'sandbox'});p.write_text(json.dumps(d,indent=2))" - Print summary. slug, score, sandbox path, exact promote command.
Pitfalls
- The slug must be unique across BOTH sandbox AND production. Don't shadow a live skill — it breaks naming when promoted.
- Don't write SKILL.md anywhere outside the sandbox.
/tq-forge-promoteis the only path that writes into$CLAUDE_SKILLS_DIR. - If
allowed-toolslists a tool the host doesn't grant, the skill silently fails when invoked. Pick from tools you know are available.
Verification
$SANDBOX_SKILLS/<slug>/SKILL.mdexists, >=200 words.- Quality score printed, >=7 (or flagged for review).
skill-log.jsonhas a new entry withkind: skill, status: sandbox.
Tags
tq-forge force-skill sandbox
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

