Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add shahidshabbir-se/my-pi-setup --skill self-improvegit clone --depth 1 https://github.com/shahidshabbir-se/my-pi-setupWrote 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.
[](https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/self-improve)<a href="https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/self-improve"><img src="https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/self-improve/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.
<a href="https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/self-improve"><img src="https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/self-improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.00609 |
| Opus 5.5 | $0.00048 | $0.00244 |
| Sonnet 5.5 | $0.00024 | $0.00122 |
| Haiku 4.5 | $0.00012 | $0.00061 |
Grade A, and why
self-improve 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Self-Improve
Turn a concrete agent failure into a versioned rule. $ARGUMENTS may name the mistake and the desired rule; if it doesn't, ask before writing anything.
When NOT to use
- One-off typos or a single bad guess with no reuse value — just fix it, don't write a rule.
- The failure is really "the product/spec was ambiguous" and the user hasn't confirmed a preference yet — ask first instead of encoding a guess as a permanent rule.
Steps
-
Pin the failure — One sentence: what the agent did wrong, and the correct behavior instead. If it doesn't clear the bar above, stop here.
-
Pick the home (first match wins):
- Applies every session / every prompt in this repo → one bullet in the root
AGENTS.md, under the tightest existing heading (or a new short heading only if nothing fits). - Applies to one app or package only → a nested
AGENTS.mdinside that package (create it only if the rule is likely to recur there). - Describes a multi-step workflow rather than a single rule → extend or add a skill under
.agents/skills/instead of bloatingAGENTS.md.
- Applies every session / every prompt in this repo → one bullet in the root
-
Write the rule — Positive, short, checkable. Match the existing tone of
AGENTS.md. No essays. Prefer "do X" over a long list of "don't do Y." If the rule is really "look here for the answer," point at the path rather than restating the content. -
Dedupe — Search
AGENTS.mdand nearby agent docs for the same idea already written down. Edit in place rather than adding a duplicate. -
Keep it lean — If the root
AGENTS.mdis drifting long, move branch-specific detail into a skill or a nested file and leave a one-line pointer from the root. -
Report — State the file changed, the exact rule text added or edited, and why it belongs there.
Completion
Done when the durable rule is committed to the right file in the working tree, and any redundant wording elsewhere has been removed. Do not create a rule for a preference the user hasn't confirmed when the failure is product-ambiguous — ask first, per the guardrail above.
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.
- 2mo ago First seen · 35 lines · 120 tokens per session scan A 625b5a8a2c33
self-improve is a skill published in the GitHub repository shahidshabbir-se/my-pi-setup (1 stars, last pushed 1mo ago), licensed MIT. It adds 120 tokens to every session and 609 once invoked, about $0.0005 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-09-27.
self-improve compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| self-improveshahidshabbir-se/my-pi-setup | Skill | 1 | 1mo ago | MIT | A | 120 | Claude Code |
| repo-hygieneQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 48 | Claude Code, Codex |
| test-failure-explorerQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 32 | Claude Code, Codex |
| google-agents-cli-scaffoldgoogle/agents-cli | Skill | 6.5k | 5d ago | Apache-2.0 | A | 147 | Claude Code |
| ccccocoindex-io/cocoindex-code | Skill | 3.0k | 4d ago | Apache-2.0 | A | 80 | Claude Code |
| find-simplificationsQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | C | 103 | Claude Code, Codex |
| build-teaql-appteaql/teaql-agent-kit | Skill | 2.8k | 20d ago | MIT | A | 112 | Codex |