polya-heuristic-coder

polya-heuristic-coder is a skill for Claude Code, Codex from GulajavaMinistudio/awesome-copilot-id. It costs 72 tokens per session (14,991 once invoked), scanned C, original, MIT.

A coding guide that applies George Pólya’s problem-solving steps and Robert C. Martin’s clean-code and architecture principles. It is meant to guide feature design, difficult technical work, and debugging.

In plain words
What is it for?
Use it to break down complex problems, design features and system boundaries, and investigate bugs that keep returning.
Why use it?
It reduces the risk of coding before the requirements and problem are understood. It also provides structured design principles for keeping software easier to change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to break down complex problems, design features and system boundaries, and investigate bugs that keep returning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder
Install

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.

Any agent
npx skills add GulajavaMinistudio/awesome-copilot-id --skill polya-heuristic-coder
Clone the repo
git clone --depth 1 https://github.com/GulajavaMinistudio/awesome-copilot-id

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for polya-heuristic-coder

README.md
[![agentmods](https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder/github.svg)](https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder)
Your own site
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder/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.

agentmods 80×15 button for polya-heuristic-coder

Your own site · 80×15
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/polya-heuristic-coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,991 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.14991
Opus 5 $0.00036 $0.07496
Sonnet 5 $0.00014 $0.02998
Haiku 4.5 $0.00007 $0.01499

Measured today against content hash ba0e4690292a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

polya-heuristic-coder scanned grade C with 2 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **No Dangerous Execution:** Strictly prohibits arbitrary shell command chaining (`eval`, `curl | bash`, unverified binary executions, or uncontrolled subshell spawns).

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **No Dangerous Execution:** Strictly prohibits arbitrary shell command chaining (`eval`, `curl | bash`, unverified binary executions, or uncontrolled subshell spawns).
.agents/skills/polya-heuristic-coder/SKILL.md · 642 lines

How it starts

The opening of the file, as written. The whole thing — 642 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Polya Heuristic Coder

Role & Persona: Veteran Principal Fullstack Engineer

You embody a Veteran Senior Principal Fullstack Software Engineer with over two decades of hands-on production experience across all layers of modern computing systems (Databases, Distributed Services, API Contracts, Frontend Runtimes, and Cloud Infrastructures).

Your Professional Persona & Demeanor:

  • Battle-Tested Pragmatism: You have witnessed dozens of technology hype cycles, painful legacy migrations, and 3 AM production outages. You know from decades of experience that 90% of software bugs and project failures stem from misunderstood requirements and premature coding, not syntactic errors.
  • Master of Clean Code, Clean Architecture & SOLID ("Uncle Bob"): You are an uncompromising practitioner of Robert C. Martin's principles. You structure decoupled boundaries along Clean Architecture seams (Entities $\rightarrow$ Use Cases $\rightarrow$ Interface Adapters $\rightarrow$ Frameworks), strictly enforce the 5 SOLID design principles (SRP, OCP, LSP, ISP, DIP), practice the Boy Scout Rule (leave the code cleaner than you found it), and write self-documenting code with intention-revealing names.
  • Full-Stack Fluency: You reason effortlessly across the entire execution path—from database indexing, transaction boundaries, and wire serialization up to asynchronous state machines and reactive UI rendering.
  • Pólya's Applied Science: You do not treat George Pólya's 1945 heuristic framework as academic theory; to you, it is the sharpest, battle-tested practical tool to deconstruct complexity, kill ambiguity, and write rock-solid software.
  • Socratic Mentorship: You communicate with calm authority, professional rigor, and clarity. You refuse to produce blind code patches or unverified boilerplate. You guide developers to understand the foundational mental model first before writing a single line of code.

Invocation & Phase Dispatching

Read the full file on GitHub · 642 lines

Changes

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.

  1. today Changed · +106 lines ba0e4690292a
  2. 2d ago Changed · +59 lines ebfa20f5095c
  3. 3d ago First seen · 477 lines · 72 tokens per session scan C 8205e374ae2c

Subscribe to this mod's changes

polya-heuristic-coder is a skill published in the GitHub repository GulajavaMinistudio/awesome-copilot-id (73 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 14,991 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories

performance-optimization

Optimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.

addyosmani/agent-skills · 59 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high…

addyosmani/agent-skills · 96 tokens

debugging-and-error-recovery

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than…

addyosmani/agent-skills · 67 tokens

lcx-report-bug

Create a high-signal bug issue or PR in the repo that owns the defect. Use this whenever the user asks to report, file, open, or triage a LazyCodex, lazycodex-ai, omo-codex, Codex plugin, or upstream Codex CLI bug, especially when they need source-backed root cause, reproduction steps, fix guidance, and GitHub routing.

code-yeongyu/oh-my-openagent · 85 tokens

ast-grep

Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.

code-yeongyu/oh-my-openagent · 61 tokens

debugging

Runs a hypothesis-driven debugging loop across any language or binary, escalating to orthogonal oracle angles and locking the fix with a failing test. Use for crashes, silent failures, hangs, wrong responses, memory leaks, async misbehavior, or reverse engineering.

code-yeongyu/oh-my-openagent · 53 tokens