Token-efficiency skills, hooks, and MCP wiring for Claude Code. Keeps the supervisor's context lean: subagent delegation patterns, model tiering, pre-indexed code graph queries, and scratch externalization. Pairs well with RTK (installed separately) for shell-output trimming.
Use this skill when you are about to do work that is long, noisy, or iterative — codebase search, reading more than two files to answer one question, running tests/builds/linters with verbose output, summarizing long files or logs, or any feedback loop (typecheck → fix → retry). Delegates the work to a subagent with a strict return contract so the supervisor's context stays clean.
Use this skill on any non-trivial task to externalize running notes, decisions, and ruled-out hypotheses to .agent-scratch/ instead of carrying them in the conversation. Invoke at task start (read prior notes), during work (append findings), and at task end (record decisions). Also use to detect when /compact or a session restart is warranted.
Use this skill when picking a model for a subagent or task — Haiku for mechanical work (search, test runners, log triage, scaffolds), Sonnet for judgment (debugging, architecture, multi-file changes), Opus only when Sonnet stalls. Apply at the start of any session, before spawning a subagent, or whenever a task's complexity is unclear.
Use this skill at the start of any non-trivial coding task, long debugging session, multi-file refactor, test/build loop, codebase search, or when context may grow large. Applies delegation, model tiering, scratch notes, and compact/restart hygiene in one pass.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
te plugin)Keep Claude Code's context window lean on long sessions and large codebases.
The core idea: the supervisor agent's context is RAM, not disk. Anything long, noisy, or iterative should happen outside the supervisor's window — in a subagent, in a scratch file, or trimmed before it lands.
| Skill | What it does |
|---|---|
token-efficient-agent | Meta/orchestrator — activates all three patterns at task start |
delegate-work | Spawn subagents for search, iteration loops, and verification. Enforces structured return contracts. |
tier-model | Decision table: Haiku for mechanical work, Sonnet for judgment, Opus only when Sonnet stalls |
scratch-context | Externalize notes, decisions, and dead ends to .agent-scratch/ so they survive across turns |
Install the plugin so skills are available everywhere and the SessionStart hook auto-injects scratch notes:
/plugin marketplace add MuktadirHassan/skills
/plugin install te@skills
Skills are then available as /te:token-efficient-agent, /te:delegate-work, etc.
Then per project, run two setup commands:
# 1. Add operating rules so Claude applies the patterns automatically
curl -fsSL https://raw.githubusercontent.com/MuktadirHassan/skills/main/templates/CLAUDE.md -o CLAUDE.md
# 2. Enable scratch note injection
mkdir .agent-scratch && echo ".agent-scratch/" >> .gitignore
Without step 1, the skills exist but Claude won't apply them unless you invoke them manually.
Copy the skills into your global ~/.claude/skills/:
git clone https://github.com/MuktadirHassan/skills /tmp/te
cp -r /tmp/te/skills/* ~/.claude/skills/
Restart Claude Code. Skills show up in /help as /token-efficient-agent, /delegate-work, etc.
Then add operating rules to any project you want them active in:
curl -fsSL https://raw.githubusercontent.com/MuktadirHassan/skills/main/templates/CLAUDE.md -o CLAUDE.md
Note: with Option B, the scratch-context skill works but you have to read .agent-scratch/ manually — there's no auto-injection hook.
| File | Purpose |
|---|---|
templates/CLAUDE.md | Drop-in operating rules (~5 lines). Copy to your project or ~/.claude/CLAUDE.md |
templates/SYSTEM_PROMPT.md | Extended rules: model tiering table, failure modes. Paste the sections you want. |
templates/return-contract.md | Copy-paste subagent reply schemas (default, iterator, scout) |
git, npm, etc.) before the model sees it. Ships its own hook..claude-plugin/plugin.json plugin manifest (name: te)
hooks/
hooks.json SessionStart registration
load-scratch.py injects .agent-scratch/ contents on session start
skills/
token-efficient-agent/SKILL.md meta/orchestrator
delegate-work/SKILL.md subagent patterns and return contract
tier-model/SKILL.md model selection decision table
scratch-context/SKILL.md externalize state to .agent-scratch/
templates/
CLAUDE.md drop-in operating rules
SYSTEM_PROMPT.md extended rules
return-contract.md subagent reply schemas
MIT. See LICENSE.
npx claudepluginhub muktadirhassan/skills --plugin tePermanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Intelligent prompt optimization: injects the right context at the right moment so Claude lands a better first output. Clarifies vague prompts with research-based questions, plus targeted nudges for approach selection, plan readability, workflow routing, background execution, subagent routing, output readability, user-decision questions, and plan-mode assessment
Semantic search for Claude Code conversations. Remember past discussions, decisions, and patterns.