pseudocode
БесплатноБез исполняемых скриптовНе проверенWHEN rendering pseudocode of how code composes—module boundaries, types, signatures, arguments, and execution flow—for code that exists or a change about to…
от mintuz★ 38 звёзд на GitHubОб этом скилле
Pseudocode
Code has a waterline. Above it sits the shape: modules and their boundaries, types, signatures, the values that cross each boundary, and the order calls happen in. Below it sits syntax and the statements inside a body.
Render the shape and collapse everything below the waterline to intent. Only bodies are pseudo: read every name, type, and path from the source and cite it, or mark it [NEW] (principle-observe-dont-infer). Run read-only: the render is the deliverable, not the edit (principle-investigate-read-only). When the request also asks for a review verdict, a diagram, or the change itself, state plainly that the render carries none of them, leave that work to its owning workflow, and return the render.
1. Frame the render
Name the entry points to trace from and the frame edge—the packages, services, and libraries that count as outside. Name each wiring to render: production, plus any composition root that substitutes a dependency, such as tests, local dev, or a feature flag.
Classify each entry point existing or [NEW]. For a [NEW] render, resolve the requirement it must satisfy and the existing code it attaches to.
Complete when: the entry points, the frame edge, every wiring, and the existing/[NEW] split are each explicit.
2. Read the parts
Follow every call from each entry point, opening each file on the path. For every function reached, record its declaration file and line, its signature as written, the effects it causes, and each call's call-site line.
Expand a path until it reaches a boundary crossing, a pure leaf, the frame edge, a function already recorded, or an unresolved call: dispatch through a registry, table, or interface that nothing in the evidence binds to a target. A path ends nowhere else. Record an unresolved call as unresolved and name the evidence that would resolve it using source identifiers, not a general category: the binding, registration, or configuration call that would attach a target, plus the target where the evidence identifies one (principle-observe-dont-infer).
For a [NEW] render, read the surrounding modules the change attaches to with the same rigour; derive parts that do not exist yet from the requirement and mark them. Mark [NEW] at every level it applies to: the route, the module, the type, each field the requirement adds, the signature, and the edge.
Complete when: every path terminates on one of those conditions, and every name that will appear in the render is either recorded with a file and line or marked [NEW].
3. Render the shape
Write in the project's own language and naming, in three parts:
Types — every type, interface, or schema that crosses a boundary, declared with its fields. A type from outside the frame is named and marked external.
Boundaries — one row per module: what it owns, what it exposes, what it depends on, and what it hides behind that surface.
Signatures — grouped under their module, each carrying its declaration file and line, parameter names, parameter types, return type, and error type as written in the source. Each body collapses to a single line naming its intent.
Where the cut is not obvious, place it here:
| Above the waterline | Below it |
|---|---|
| An effect that leaves the process: network, database, filesystem, clock, randomness, environment | Pure local computation |
| A branch that changes which downstream call happens | A branch that only changes a returned value |
| A helper whose effect crosses the module edge | A private helper contained inside it |
| What is constructed and injected where | Framework and transport boilerplate |
Complete when: every type named in a signature is declared here or marked external, every module row states what it hides, and every signature matches its source or carries [NEW].
4. Render the call graph
One graph per wiring, as an indented tree. Each edge reads → Callable(arg: Type, arg: Type) : Return (Receiver.method(…) where the source calls through a receiver), then its annotations, then the caller's call-site file and line. Order siblings by execution order. The root line carries the entry point's own declaration, because the root has no caller. Callee declarations stay in the signatures, so sibling edges under one caller all cite that caller's file.
submitCheckout(req: HttpRequest) : HttpResponse src/http/checkout.ts:14
→ Checkout.submit(cart: Cart, actor: UserId) : Receipt src/http/checkout.ts:16
→ Pricing.quote(cart: Cart) : Quote src/checkout/service.ts:33
→ TaxRates.lookup(region: Region) : TaxTable [boundary: network] src/pricing/quote.ts:11
→ Payments.charge(quote: Quote, card: CardRef) : Receipt [boundary: network] src/checkout/service.ts:36
→ Orders.insert(order: Order) : OrderId [boundary: database] src/checkout/service.ts:39
→ Email.receipt(to:
Установить pseudocode в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pseudocode?
WHEN rendering pseudocode of how code composes—module boundaries, types, signatures, arguments, and execution flow—for code that exists or a change about to be built; NOT for code review, verdicts, diagrams, or implementation; returns the shape and a cited call graph.
Как установить скилл pseudocode?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pseudocode запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic