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 arpitbbhayani/ape-skills --skill ape-write-pseudocodegit clone --depth 1 https://github.com/arpitbbhayani/ape-skillsWrote 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/arpitbbhayani/ape-skills/ape-write-pseudocode)<a href="https://agentmods.dev/skills/arpitbbhayani/ape-skills/ape-write-pseudocode"><img src="https://agentmods.dev/badge/skills/arpitbbhayani/ape-skills/ape-write-pseudocode/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/arpitbbhayani/ape-skills/ape-write-pseudocode"><img src="https://agentmods.dev/badge/skills/arpitbbhayani/ape-skills/ape-write-pseudocode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00075 | $0.01001 |
| Opus 5 | $0.00037 | $0.00500 |
| Sonnet 5 | $0.00015 | $0.00200 |
| Haiku 4.5 | $0.00007 | $0.00100 |
Grade A, and why
ape-write-pseudocode 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 10d 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 — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pseudocode Style Guide
Structure of a Function
Every pseudocode function has exactly three parts: input, output, and body. Use Python-like syntax: def for the function signature, a docstring-style comment block for input and output, and indented body lines.
def function_name(param1, param2, ...):
# input: <what each param represents>
# output: <what the function returns or produces>
<body>
Body Rules
The body is the core of the pseudocode. Each line is a pythonic, non-functional call that names the operation and its operands -- not English prose. Invent clear, intuitive method or function names. The goal is code that reads like intent, not implementation.
- One call per logical step.
- Use
object.verb(args)orverb(args)style -- never English sentences. - No type annotations, no real data-structure internals, no language-specific APIs.
- Intermediate variable names are fine when they connect two steps.
- Never more than one idea per line.
Control Flow
Use if, elif, else, and loops sparingly and only when the branching or iteration is the point of the logic. Conditions are also written as code-like expressions, not prose.
if condition_call(args):
...
else:
...
for item in collection:
...
while not done():
...
What to Write on Each Line
Each line should look like a call you would recognise but cannot actually run.
Good patterns:
nodes.filter_reachable_from(source)entries.sort_by(timestamp, order=ASC)graph.shortest_path(source)candidates.pick_highest_score()merge_sorted(left, right)
Bad patterns:
"filter nodes by reachability from source"-- English sentence, not codedist[v] = dist[u] + weight(u, v)-- actual implementation codeinitialize a min-heap priority queue with (0, source)-- prose + detaillist.stream().filter(x -> x > 0).collect(...)-- real language API
Examples
Good:
def lsm_write(key, value):
# input: key and value to store
# output: acknowledgement that write is recorded
memtable.append(key, value)
if memtable.exceeds_threshold():
sstable = memtable.flush_to_disk()
memtable.clear()
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.
- 10d ago First seen · 140 lines · 75 tokens per session scan A 52101dfa0946
ape-write-pseudocode is a skill published in the GitHub repository arpitbbhayani/ape-skills (37 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 1,001 once invoked, about $0.0004 per session on Opus 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-08-30.
Other skills, from other repositories
offensive-vuln-classes
Exploit development curriculum covering core vulnerability classes with real-world CVE case studies: stack/heap buffer overflows, use-after-free, integer overflows, format strings, type confusion, and race conditions. Use when learning or teaching vuln classes, researching specific CVE patterns, or building exploit…
explain-this
Explain whatever the user is pointing at right now in plain language: a pending question, a piece of code, an error, a command output, or an artifact like a plan or findings report. Use when the user asks to "explain this", "what am I being asked", "what's happening right now", "help me understand this", "what does…
understand-change
Teach the user to deeply understand a change through interactive tutoring: restating understanding, drilling into why/what/how, and quizzing until mastery. The active counterpart to a one-shot explanation. Use when the user asks to "understand this change", "teach me this change", "help me understand what changed"…
cizhuan-mudiban-xuangou-zhinan
A Chinese-language knowledge guide about choosing and installing ceramic tiles and wood flooring.
diaoding-zhuangxiu-zhinan
A Chinese-language knowledge guide for planning ceiling work during a home renovation, including materials, measurements, bathroom and kitchen ceilings, and living-room designs.
jiadian-bikeng-zhinan
A Chinese-language guide to choosing and installing household appliances, including kitchen, cooling, heating, water, cleaning, entertainment, and bathroom equipment.