pattern-card

pattern-card is a skill for Claude Code, Codex from chocomyong/harness-kit. It costs 53 tokens per session (452 once invoked), scanned A, original, MIT.

A documentation skill that records the cause and prevention of a recently fixed bug as a numbered card in PATTERNS.md. The card includes the observed symptoms, debugging path, root cause, and a checkable prevention rule.

In plain words
What is it for?
Use it immediately after finding a bug's root cause to update the pattern index and document what happened, what was checked, and how to avoid the failure again.
Why use it?
It moves debugging knowledge out of one person's memory and helps prevent a later cleanup from removing a fix or reopening the same bug.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it immediately after finding a bug's root cause to update the pattern index and document what happened, what was checked, and how to avoid the failure again.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chocomyong/harness-kit/pattern-card
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 chocomyong/harness-kit --skill pattern-card
Clone the repo
git clone --depth 1 https://github.com/chocomyong/harness-kit

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 pattern-card

README.md
[![agentmods](https://agentmods.dev/badge/skills/chocomyong/harness-kit/pattern-card/github.svg)](https://agentmods.dev/skills/chocomyong/harness-kit/pattern-card)
Your own site
<a href="https://agentmods.dev/skills/chocomyong/harness-kit/pattern-card"><img src="https://agentmods.dev/badge/skills/chocomyong/harness-kit/pattern-card/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 pattern-card

Your own site · 80×15
<a href="https://agentmods.dev/skills/chocomyong/harness-kit/pattern-card"><img src="https://agentmods.dev/badge/skills/chocomyong/harness-kit/pattern-card.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 452 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.00053 $0.00452
Opus 5.5 $0.00021 $0.00181
Sonnet 5.5 $0.00011 $0.00090
Haiku 4.5 $0.00005 $0.00045

Measured 1mo ago against content hash 963f3633c66d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pattern-card 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 1mo 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.

skills/pattern-card/SKILL.md · 39 lines

What it actually says

Write a pattern card

The moment debugging ends is when the knowledge is cheapest to capture. A card moves the reason a fix exists out of someone's head and into the repo, so the next session does not "clean up" the guard and reopen the bug.

Steps

  1. Read PATTERNS.md: its index, the highest card number, and any card that already covers this area. If an existing card covers the same root cause, extend that card instead of adding one.

  2. Draft the card from this session's actual evidence:

    ### PATTERN-<NN>: <one-line name of the failure>
    
    - **Symptom:** what was actually seen - error text, wrong output, crash - not the cause.
      Several symptoms with one cause? List them all; co-occurrence is a clue.
    - **Debug path:** what was checked, in order, including the dead ends.
    - **Root cause:** one or two sentences. Cannot state it that tightly? It is not found yet.
    - **Prevention rule:** a concrete, checkable rule. "Be careful" is not a rule;
      "always pass `**kwargs` to the worker callback" is. (learned <version or date>)
    
  3. Add the card number to the index row for the touched area (create the row if needed). A card missing from the index is a card nobody will read.

  4. If the prevention rule can be enforced by a hook, test, or linter, propose that too - and say so in the card.

  5. Show the card and the index change before saving.

Rules

  • Do not copy the prevention rule into the main rules file; link the card number instead.
  • Past roughly 25 cards, split into per-area files and keep PATTERNS.md as the index.
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. 1mo ago First seen · 39 lines · 53 tokens per session scan A 963f3633c66d

Subscribe to this mod's changes

pattern-card is a skill published in the GitHub repository chocomyong/harness-kit (2 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 452 once invoked, about $0.0002 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-10-16.

Related

pattern-card compared with skills from other repositories

pattern-card next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pattern-cardchocomyong/harness-kitSkill21mo agoMITA53Claude Code, Codex
diagnosing-bugsJoaoEquer/OficinaSkill210d agoMITA40Claude Code, Codex
improve-codebase-architectureJoaoEquer/OficinaSkill210d agoMITA80Claude Code, Codex
openrig-skillsmvschwarz/openrigSkill9.0ktodayApache-2.0A109Claude Code
oversight-teammvschwarz/openrigSkill9.0ktodayApache-2.0A117Claude Code, Codex
developing-openrigmvschwarz/openrigSkill9.0ktodayApache-2.0A84Claude Code, Codex
bug-fixerzxpmail/ReqForgeSkill1816d agoMITA0Claude Code