agentleFS
roronoazoroshao369roronoazoroshao369/vibe-coding-os/skills/core/model-weakness-memory/SKILL.md

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…

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
  1. Very specific:

    Load the weakness log: Read templates/model-weakness-log.md (or the project-local copy if overridden).

    line 32
  2. Distinctive:

    Post-task evaluate: After task completion, compare the output against each injected check.

    line 36
  3. Distinctive:

    Update the log: If a new weakness was observed (not already logged), add an entry.

    line 37
  4. Distinctive:

    Never pruning stale entries when models update and weaknesses are fixed

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md or equivalent persisted log
  • Current diff or output — the code the model produced (optional, for post-task evaluation)

Workflow

  1. 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.
  2. Match task to weaknesses. Scan the log for entries whose Pattern Category or Example relates to the current task. Consider model type, task type (feature, bugfix, refactor, migration), and domain (API, database, frontend, auth, async).
  3. 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".
  4. Execute the task with the injected checks visible in the working context. Treat the checks as mandatory quality gates, not suggestions.
  5. Post-task evaluate. After task completion, compare the output against each injected check. Did any weakness manifest? Did the check prevent a failure?
  6. 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 checks
  • templates/model-weakness-log.md — the weakness log template
  • skills/core/adaptive-prompt-selection/SKILL.md — complementary skill for selecting quality packs
  • skills/core/self-review-before-response/SKILL.md — post-task self-review
  • skills/core/verification-before-done/SKILL.md — mandatory verification gate
  • skills/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ý.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.