tq-forge-test
Skill8 starsChanged 5 months agoMITView on GitHub
Re-run dry-test + quality-score on an existing forged skill or agent without rewriting it. Useful after a manual edit, or to verify a flagged "needs_manual_review" item now passes. Use when asked for "/tq-forge-test", "re-test the skill", "score it again", or "is this still passing".
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-skillSkill
- tq-forge-statusSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
If missing everywhere, list the sandbox + production dirs and abort:
- Distinctive: line 74
Check both copies if a slug exists in sandbox and production — the production copy is what users actually invoke.
- Very specific: line 86
If the artifact was on needs_manual_review and now passes, that list is shorter by one.
≈ “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-test — re-validate without rewriting
When to use
You manually edited a sandbox or production artifact and want to confirm it
still passes. Or forge-queue.json has a slug in needs_manual_review and you
want to know if today's edit cleared the bar. This skill never rewrites the
artifact — only the score.
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- Resolve the target. Accept a slug or a full path. With a slug,
auto-detect across sandbox + production:
If missing everywhere, list the sandbox + production dirs and abort:bash "$S/quality-score.sh" --auto-detect "<slug>"ls "$SANDBOX_SKILLS" "$SANDBOX_AGENTS" "$CLAUDE_SKILLS_DIR" 2>/dev/null - Run the structural dry-test (resolve the path first via
tq_resolve):
Capture verdict (P="$(tq_resolve "<slug>")"; bash "$S/dry-test.sh" --json "$P"pass/warn/fail), checks_passed, andissues. - Run quality-score.
Capture avg and per-dimension breakdown.bash "$S/quality-score.sh" --json "$P" - Print a combined report. Two-line header, then the per-dimension bars,
then any dry-test
issuesas bullets:<emoji> <slug> (<kind>) — quality X/10 · dry-test Y/10 (<verdict>) - Update skill-log.json with the new score (mutate only the matching entry):
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 '[]');[e.update({'score':<new>,'last_tested':datetime.datetime.now(datetime.timezone.utc).isoformat()}) for e in d if e.get('slug')=='<slug>'];p.write_text(json.dumps(d,indent=2))" - If the slug was in
needs_manual_reviewand avg >= 7, remove it:
Print: "✅ Cleared from needs_manual_review."python3 -c "import json,pathlib,os;p=pathlib.Path(os.environ['TQ_FORGE_HOME'])/'forge-queue.json';q=json.loads(p.read_text());q['needs_manual_review']=[x for x in q.get('needs_manual_review',[]) if x.get('slug')!='<slug>'];p.write_text(json.dumps(q,indent=2))" - Suggest the next action. avg >= 7 -> suggest
/tq-forge-promote. avg < 7 -> point at the lowest dimension and suggest/tq-forge-improve <slug>.
Pitfalls
- Check both copies if a slug exists in sandbox and production — the production copy is what users actually invoke. Test both.
- A skill that scored 9 last week but 6 now usually means an edit deleted a
section. Run
git diff(if the dir is tracked) to spot what changed. quality-score.shis heuristic. 7-9 is the normal pass band; a perfect 10 is rare. Don't chase 10 by padding word count.
Verification
- Both subcommands exit 0 on success and non-zero on parse error — surface the exit code.
skill-log.jsonhas an updatedlast_testedfor the slug.- If the artifact was on
needs_manual_reviewand now passes, that list is shorter by one.
Tags
tq-forge test re-score read-only
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.

