developer-cognitive-instincts

developer-cognitive-instincts is a skill for Claude Code from iampantherr/SecureContext. It costs 22 tokens per session (988 once invoked), scanned A, original, MIT.

A collection of practical rules for reasoning about bugs, data structures, database access, and code changes. It encourages explaining a problem clearly, reproducing it, and choosing simple solutions.

In plain words
What is it for?
Use it when investigating bugs, selecting data structures, reviewing database access, and deciding whether a proposed abstraction or change is justified.
Why use it?
It reduces guesswork and unnecessary complexity by making developers confirm the problem, follow evidence, and avoid inefficient data access patterns.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the zc-ctx plugin — 27 skills shipped together

Good fit Use it when investigating bugs, selecting data structures, reviewing database access, and deciding whether a proposed abstraction or change is justified.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iampantherr/securecontext/developer-cognitive-instincts
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 iampantherr/SecureContext --skill developer-cognitive-instincts
Clone the repo
git clone --depth 1 https://github.com/iampantherr/SecureContext

Made for: Claude Code.

Or install zc-ctx, the plugin that ships this one along with the rest of its 27 skills.

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 developer-cognitive-instincts

README.md
[![agentmods](https://agentmods.dev/badge/skills/iampantherr/securecontext/developer-cognitive-instincts/github.svg)](https://agentmods.dev/skills/iampantherr/securecontext/developer-cognitive-instincts)
Your own site
<a href="https://agentmods.dev/skills/iampantherr/securecontext/developer-cognitive-instincts"><img src="https://agentmods.dev/badge/skills/iampantherr/securecontext/developer-cognitive-instincts/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 developer-cognitive-instincts

Your own site · 80×15
<a href="https://agentmods.dev/skills/iampantherr/securecontext/developer-cognitive-instincts"><img src="https://agentmods.dev/badge/skills/iampantherr/securecontext/developer-cognitive-instincts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00022 $0.00988
Opus 5 $0.00011 $0.00494
Sonnet 5 $0.00004 $0.00198
Haiku 4.5 $0.00002 $0.00099

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

Security

Grade A, and why

developer-cognitive-instincts 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 yesterday.

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.

skills/_staging_v0_19/developer-cognitive-instincts.skill.md · 49 lines

What it actually says

COGNITIVE INSTINCTS

(Extracted from roles.json deepPrompt for the developer role during the v0.19.0 role/skill split. Original content preserved verbatim. Edit freely; the mutator will propose improvements based on skill_runs telemetry once this skill is invoked by an agent.)


Terse rules burned in by experience. Apply these before reaching for documentation.

  1. If you can't explain the bug to a rubber duck, you don't understand it yet. Articulating a problem forces clarity. Speak it aloud before writing code.
  2. Reproduce first. Fix second. Always. A fix without a reproduction is a guess. A failing test that demonstrates the bug is worth more than the fix itself.
  3. The stack trace is a map. Start at your code, not the framework's. Library internals are usually correct. Your call site is usually wrong.
  4. The simplest data structure that satisfies the access pattern wins. A sorted array beats a hash map when you need range queries. A hash map beats a database when the dataset fits in memory.
  5. N+1 queries are never acceptable in production code. If you're in a loop and touching the database, stop. Use eager loading, batch fetching, or dataloader patterns.
  6. Cache invalidation is a second feature, not a free optimization. Every cache introduces a consistency problem. Only cache when profiling proves you need it.
  7. Premature optimization is evil. Late optimization is crisis. Instrument first, optimize second. Never guess at perf bottlenecks — measure.
  8. If the test is hard to write, the design is wrong. Difficulty in testing is a design signal, not a testing problem. Listen to it.
  9. Mock the boundary, not the implementation. Mock at I/O boundaries: HTTP, database, filesystem, time. Never mock your own classes — that's testing mocks, not code.
  10. A function that does two things needs a 'and' in its name. That's a sign it should be two functions. Single responsibility is not a principle — it's a readability heuristic.
  11. Feature flags are cheaper than rollbacks. Ship behind flags, enable gradually, delete flags when stable. This is the real CI/CD discipline.
  12. Error messages are UI. Write them for the person who will read them at 2am during an incident, not for yourself right now.
  13. If you're not logging it, it didn't happen. Structured logs with correlation IDs are worth more than a dozen monitoring dashboards built on unstructured output.
  14. Dependency-in, dependency-out. Never reach sideways. Functions should receive what they need as arguments, not import globals or singletons. This makes testing and reasoning trivial.
  15. A PR that touches 10 files in 10 different concerns is not one PR. It's 10 PRs that haven't been separated yet. Small, focused PRs ship faster, review better, and revert cleanly.
  16. The README is a promise. Keep it current or delete it. Stale docs are worse than no docs. They actively mislead.
  17. Secrets in code is an immediate stop-the-line. Rotate the credential before the PR merges. No exceptions. The cost of "it was just for testing" is incident response.
  18. Backwards compatibility is a contract, not a suggestion. Once an API is public, every field and status code is a promise. Version explicitly when you need to break it.
  19. Retry with backoff, or don't retry at all. Naive retry loops amplify failure. Exponential backoff + jitter + max retries is the minimum viable retry strategy.
  20. Technical debt is inventory. Inventory has carrying costs. Unnamed debt compounds silently. Name it, estimate it, prioritize it like a feature.

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. yesterday First seen · 49 lines · 22 tokens per session scan A 2264e0cbc8db

Subscribe to this mod's changes

developer-cognitive-instincts is a skill published in the GitHub repository iampantherr/SecureContext (8 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 988 once invoked, about $0.0001 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-09-08.

Related

Other skills, from other repositories

doctor

A diagnostic command for codex-compressor, a tool that manages Codex settings and hooks. It checks Python, platform support, permissions, hook support, and buffer settings.

hehee9/codex-compressor · 23 tokens

stack-graph-profile

Inspect or switch the code-graph backend and profile for a repo (code / review / multimodal / spec). Use when the repo's focus changes — heavy PR review, newly added PDFs or video, spec-driven work — or when graph queries are returning poor context. Wraps agent-stack profile use and agent-stack graph use, which…

drmahdikazempour/agent-stack · 85 tokens

serena-navigator

This skill should be used when the user asks to "navigate code efficiently", "find function definition", "understand file structure", "explore codebase", "get symbols overview", "find symbol usages", or mentions Serena's LSP tools like getsymbolsoverview, findsymbol, findreferencingsymbols.

anilcancakir/claude-code-plugins · 69 tokens

tidewave-integration

Tidewave MCP runtime tools — debugging, smoke testing, live state inspection, SQL queries, hex docs. Use when evaluating code in a running Phoenix app.

oliver-kriska/claude-elixir-phoenix · 38 tokens

debug

Interactive debugging workflow with hypothesis-driven probe loop. Use when: unknown bugs, script errors, silent failures, troubleshooting. Not for: known bugs (use bug-fix), GitHub issue analysis (use issue-analyze), code understanding (use code-explore). Output: debug report with probe journal + root cause + fix.

sd0xdev/sd0x-harness · 67 tokens

git-investigate

Git history investigation. Use when: tracking code changes, finding where bugs were introduced, root cause analysis. Not for: code exploration (use code-explore), issue analysis (use issue-analyze). Output: history trace + root cause report.

sd0xdev/sd0x-harness · 53 tokens