Borrowing it
Nothing to install: this file belongs to getappz/agentflare. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/getappz/agentflare/master/.claude/skills/algorithm-pseudocode-design/SKILL.mdgit clone --depth 1 https://github.com/getappz/agentflareWrote 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/getappz/agentflare/algorithm-pseudocode-design)<a href="https://agentmods.dev/skills/getappz/agentflare/algorithm-pseudocode-design"><img src="https://agentmods.dev/badge/skills/getappz/agentflare/algorithm-pseudocode-design/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/getappz/agentflare/algorithm-pseudocode-design"><img src="https://agentmods.dev/badge/skills/getappz/agentflare/algorithm-pseudocode-design.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.00107 | $0.01074 |
| Opus 5.5 | $0.00043 | $0.00430 |
| Sonnet 5.5 | $0.00021 | $0.00215 |
| Haiku 4.5 | $0.00011 | $0.00107 |
Grade A, and why
algorithm-pseudocode-design 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 — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Algorithm & Pseudocode Design
Design the algorithm before committing to a language's syntax. Pseudocode forces you to separate "what is the logic" from "how does this language express it" — bugs found at this stage are far cheaper than bugs found after a full implementation.
When to use
- The algorithm is non-trivial: non-obvious data structure choice, tricky control flow, concurrency, or a correctness property that's easy to get subtly wrong (rate limiting, cache eviction, ranking/scoring).
- Complexity matters and hasn't been thought through yet — "this might be O(n²) on the hot path" is worth catching on paper.
- Skip for code that's a direct, obvious translation of the requirement (simple CRUD, straightforward glue/plumbing) — pseudocode adds no value there.
Structure and syntax
Keep it language-agnostic — no language-specific syntax, so the logic reads the same regardless of what it'll be implemented in:
ALGORITHM: AuthenticateUser
INPUT: email (string), password (string)
OUTPUT: user (User object) or error
BEGIN
IF email is empty OR password is empty THEN
RETURN error("Invalid credentials")
END IF
user ← Database.findUserByEmail(email)
IF user is null THEN
RETURN error("User not found")
END IF
isValid ← PasswordHasher.verify(password, user.passwordHash)
IF NOT isValid THEN
SecurityLog.logFailedLogin(email)
RETURN error("Invalid credentials")
END IF
session ← CreateUserSession(user)
RETURN {user: user, session: session}
END
Data structure selection
Name the structure, its complexity per operation, and why it was chosen over the alternatives — not just what it is:
UserCache:
Type: LRU cache with TTL
Purpose: reduce DB queries for active users
Operations: get O(1), set O(1), evict O(1)
PermissionTree:
Type: trie (prefix tree)
Purpose: efficient hierarchical permission checks
Operations: hasPermission(path) O(m), m = path length
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 · 128 lines · 107 tokens per session scan A 8dbbe68edcfa
algorithm-pseudocode-design is a skill published in the GitHub repository getappz/agentflare (2 stars, last pushed today), licensed Apache-2.0. It adds 107 tokens to every session and 1,074 once invoked, about $0.0004 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-08-31.
Other skills, from other repositories
find-simplifications
Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…
swarm-pr-review
Run a graph-guided, tool-augmented PR review using context packing, parallel exploration, mandatory repository-agnostic risk-family coverage with dispatch scaled to diff size and risk, independent reviewer validation, critic challenge, and metrics writeback. Use for deep pull request review with low false-positive…
code-review
You are a senior code reviewer. You receive diffs via stdin.
include-test-files-that-assert-on-behavior-being-changed-in-decl
When delegating a task affected by this skill, include.
agent-debug-ci
Investigate failed scheduled or nightly GitHub Actions runs on the default branch, determine whether the failure is reproducible and repository-owned, implement the smallest evidence-backed fix, validate it, and open a pull request. Use when a failed nightly CI event starts an agent, or when the standard CI or…
audit-ci
Run and analyze Elements cold CI performance profiles and propose evidence-backed build, test, lint, and dependency-graph improvements. Use whenever asked to profile or benchmark pnpm run ci, rerun ci:profile, create a CI performance audit, compare CI timings, find bottlenecks or the completion path, investigate a CI…