An agentic skill designed for Claude Code and OpenCode to maximize useful coding work per session by minimizing waste, reducing repeated work, and enforcing efficient execution behavior.
- Loop Prevention: Automatically interrupts repeated low-value actions.
- Context Budgeting: Prevents large file reads and re-reading unchanged files.
- Output Suppression: Enforces concise responses and suppresses verbose CLI/tool outputs (no yapping).
- Compact Working Memory: Maintains a compressed explicit JSON state for session context.
Based on several test trials using identical prompts, utilizing this skill yielded around a 47% increase in efficiency, substantial token savings, and better quality results.
You can easily install this skill into any of your projects from the terminal via npx. This allows anyone to inject the prompt/protocol dynamically.
You can install this skill globally with a single command. Run this anywhere on your machine:
npx smartcode-agent-skill-extenderTo test it locally:
- Clone this repository.
- Run
npm linkin the root directory. - In any target project, run:
smartcode-skillWhen the CLI runs, it automatically wraps the skill in the required YAML frontmatter and installs it to the global skill directories:
~/.claude/skills/session-extender/SKILL.md~/.opencode/skills/session-extender/SKILL.md
Once installed, simply open Claude Code or OpenCode, type /skills, and you will see the session-extender skill available to toggle globally across any project!