model-weakness-memory
Skill1 starsChanged 5 months agoMITView on GitHub
Track known failure patterns for different model types and auto-inject relevant checks before tasks. This skill builds an institutional memory of where models tend to fail — hallucinated imports, incorrect API usage, fragile error handling, off-by-one logic, missing edge cases — and uses that memory to preemptively guard against repeated mistakes. Use when starting any coding task where the model type is known, when reviewing output from a model that has documented weaknesses, after a model-generated failure is identified and…
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- advanced-orchestrationSkill
- architect-agentSkill
- implementer-agentSkill
- quality-councilSkill
- reviewer-agentSkill
- tester-agentSkill
- writer-critic-pairSkill
- authoring-skillsSkill
- api-endpoint-qualitySkill
- async-job-qualitySkill
- auth-qualitySkill
- db-migration-qualitySkill
- frontend-state-qualitySkill
- acceptance-criteriaSkill
- adaptive-flowSkill
- adaptive-prompt-selectionSkill
- adversarial-code-reviewSkill
- architecture-decision-recordsSkill
- brainstormingSkill
- brownfield-spec-enhancementSkill
- bug-fix-lifecycleSkill
- checkpoint-validationSkill
- cicd-integrationSkill
- clarify-before-codeSkill
- claude-code-hooks-packSkill
- code-context-packSkill
- code-intelligence-reviewSkill
- context-policySkill
- context-rich-implementationSkill
- crash-proof-planningSkill
- critique-pass-protocolSkill
- dependency-aware-task-orderingSkill
- deprecation-migrationSkill
- disciplined-diagnosisSkill
- docs-authorSkill
- executing-plansSkill
- external-skillSkill
- finishing-a-development-branchSkill
- git-guardrailsSkill
- goal-driven-executionSkill
- grill-user-before-buildingSkill
- guard-bypass-protocolSkill
- improve-codebase-architectureSkill
- incremental-reviewSkill
- issue-slicingSkill
- lessons-learned-dbSkill
- loop-engineeringSkill
- model-aware-configSkill
- multi-repo-learningSkill
- orchestration-workflowsSkill
- plan-driven-executionSkill
- plan-from-specSkill
- prd-from-contextSkill
- project-constitutionSkill
- prompt-architectureSkill
- prototype-before-commitmentSkill
- quality-engineSkill
- quality-execution-contractSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Load the weakness log: Read templates/model-weakness-log.md (or the project-local copy if overridden).
- Distinctive: line 36
Post-task evaluate: After task completion, compare the output against each injected check.
- Distinctive: line 37
Update the log: If a new weakness was observed (not already logged), add an entry.
- Distinctive: line 48
Never pruning stale entries when models update and weaknesses are fixed
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Model Weakness Memory
Purpose
Track known failure patterns for different model types and auto-inject relevant checks before tasks. This skill builds an institutional memory of where models tend to fail — hallucinated imports, incorrect API usage, fragile error handling, off-by-one logic, missing edge cases — and uses that memory to preemptively guard against repeated mistakes.
When to use
Use when starting any coding task where the model type is known, when reviewing output from a model that has documented weaknesses, after a model-generated failure is identified and wants to be prevented from recurring, or when onboarding a new model and you want to seed initial guardrails. Triggers include "the model keeps getting X wrong", "add a check for the known model weakness", or any post-failure analysis that should feed back into prevention.
Inputs
- Model type / provider — which model generated the code (e.g.
claude-sonnet,gpt-4,llama-3,local-qwen) - Task description — what the model was asked to do
- Weakness log — the current
templates/model-weakness-log.mdor equivalent persisted log - Current diff or output — the code the model produced (optional, for post-task evaluation)
Workflow
- Load the weakness log. Read
templates/model-weakness-log.md(or the project-local copy if overridden). If no log exists, start with an empty one. - Match task to weaknesses. Scan the log for entries whose
Pattern CategoryorExamplerelates to the current task. Consider model type, task type (feature, bugfix, refactor, migration), and domain (API, database, frontend, auth, async). - Inject checks. For each matched weakness, add a specific, actionable check to the task's pre-flight checklist. Example: if the model is known to skip null-checks on database results, add "verify every DB query result is null-checked before use".
- Execute the task with the injected checks visible in the working context. Treat the checks as mandatory quality gates, not suggestions.
- Post-task evaluate. After task completion, compare the output against each injected check. Did any weakness manifest? Did the check prevent a failure?
- Update the log. If a new weakness was observed (not already logged), add an entry. If an existing weakness did not manifest this time, consider adjusting its severity or adding context. Remove entries confirmed obsolete by model updates.
Outputs
- Enriched checklist — the task's pre-flight quality checks, augmented with model-weakness-specific items
- Optional log update — new entries or adjustments to
templates/model-weakness-log.md - Post-task report — which injected checks passed, which caught issues, which were irrelevant
Failure modes
- Overfitting the log to a single incident without broader pattern confirmation
- Never pruning stale entries when models update and weaknesses are fixed
- Injecting too many checks that overwhelm the task context without prioritization
- Treating the log as definitive truth rather than a living document that needs evidence
- Failing to capture the model type, making future matching impossible
Verification checklist
- Weakness log is loaded before task execution begins
- At least one relevant weakness is matched (or explicit "no matches" noted)
- Injected checks are specific and actionable, not vague reminders
- Post-task evaluation compares output against each injected check
- New weaknesses observed during the task are logged with evidence
- Log entries include model type, pattern category, and prevention strategy
- Stale or disproven entries are flagged for review
Related skills/commands
commands/vibe-model-weakness.md— command entry point for loading weakness log and recommending checkstemplates/model-weakness-log.md— the weakness log templateskills/core/adaptive-prompt-selection/SKILL.md— complementary skill for selecting quality packsskills/core/self-review-before-response/SKILL.md— post-task self-reviewskills/core/verification-before-done/SKILL.md— mandatory verification gateskills/prompts/quality-rubric/SKILL.md— universal quality checks to compose with
Ghi chú tiếng Việt
Theo dõi các mô hình lỗi đã biết của từng loại model và tự động chèn các kiểm tra liên quan trước mỗi task. Khi model thường mắc lỗi — import giả, sử dụng API sai, xử lý lỗi kém, sai edge-case — skill này ghi lại và ngăn chặn lặp lại. Workflow: tải nhật ký → khớp task với weaknesses → thêm checks → thực thi → đánh giá sau task → cập nhật nhật ký.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

