ryanthedev/code-foundations/cc-pseudocode-programming
Claude Code and agent skill by ryanthedev/code-foundations
- community
Checking that the SKILL.md file is still in the repository.
Structures routine design through pseudocode-first iteration: clarifies naming and purpose before any code, catches design flaws cheaply, and prevents compile-debug loops on poorly understood routines. For designing a routine before writing it; not for assessing routines that already exist (use cc-routine-and-class-design).
Install
npx vskill@latest install ryanthedev/code-foundations/cc-pseudocode-programmingSKILL.md
cc-pseudocode-programming
Design a routine in pseudocode before writing it. Iterating on intent is cheaper than iterating on code, and four questions catch the expensive mistakes early:
| Question | Why | |
|---|---|---|
| Can you name it clearly? | Naming difficulty signals an unclear design — clarify purpose first | |
| Is there pseudocode before the code? | Refining pseudocode is cheaper than refining code | |
| Do you understand why it works? | Working code you can't explain probably doesn't really work | |
| Did you consider an alternative? | The first design is rarely the best |
If the user asks to skip pseudocode, comply or surface the tradeoff once (the routine will likely cost more in debugging) — don't refuse.
When the routine is exempt
Skip the process only when one of these holds:
- Simple accessor —
getValue()/setName()with no validation, transformation, or side effects. - Pure pass-through — delegation with no parameter transformation or error wrapping.
- Trivial one-liner — all of: single statement, zero decision points, zero loops, implementation obvious from the signature alone.
- Already designed — a design document specifies the exact algorithm, error handling, and edge cases.
A routine you're debating as "trivial enough" is not trivial — design it.
Modes
APPLIER
Guide routine design with the Pseudocode Programming Process. Produces pseudocode design, header comments, and an implementation plan.
- Confirm the routine's place in the overall design is clear.
- Define the problem: inputs, outputs, preconditions, postconditions, what it hides.
- Name the routine — if naming is hard, the design is unclear; iterate.
- Plan how you'll test it before writing code.
- Check libraries for existing functionality before building.
- Plan error handling — think through failure modes.
- Research relevant algorithms if needed.
- Write pseudocode as a header comment in natural language (language-independent, intent not syntax).
- Iterate until generating code from each line is nearly automatic — you can write each line without pausing to decide how. If you stop to think "how do I implement this part?", the pseudocode needs more detail.
- Try alternatives; keep the best.
- Code from the pseudocode, which becomes the comments.
- Compile clean at the strictest warning level.
"Convinced it's correct" means you can mentally trace every path — happy, error, edge — and explain why each produces the right output. "It looks right" is not convinced.
Good vs bad pseudocode
Pseudocode at the level of intent, no target-language syntax:
This reads as English, becomes excellent comments, and is precise enough to generate code from. The anti-pattern instead writes *hRsrcPtr, malloc(), return 1 — target-language detail that focuses on HOW, exposes implementation, and makes poor comments.
CHECKER
Verify the produced pseudocode and resulting routine. Checklist: Read(${CLAUDE_SKILL_DIR}/checklists.md). Assess the artifacts:
- Is the pseudocode at the level of intent (English, not target-language syntax)?
- Is it detailed enough that code generation from it is nearly automatic?
- Does at least one alternative approach appear to have been weighed?
- Can the routine's correctness be explained by tracing all paths?
- Are all compiler warnings eliminated?
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cc-pseudocode-programming/SKILL.md
Popularity
- Repository stars
- 247
- Repository forks
- 22
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ryanthedev/code-foundations/cc-pseudocode-programming)