find-mismatch
Skill0 starsChanged 46 days agoMITView on GitHub
Systematic code review focusing on bugs that break at runtime (contract mismatches, logic/async errors, serialization, styling) and JS/TS static analysis via fallow. Use when reviewing code changes for runtime errors, post-implementation checks, finding contract mismatches, or running static analysis via fallow on changed files.
- Installs packages
In this repository55 other files it gives its agents.
- ipof-moscow-7layerSkill
- jdtaia-ieee-documentSkill
- ask-utarnSkill
- bug-trackerSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grill-noviceSkill
- grill-with-docsSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- init-bug-trackerSkill
- prototypeSkill
- prSkill
- researchSkill
- retroSkill
- setup-utarn-skillsSkill
- setup-utarn-skills-yesSkill
- tddSkill
- to-issuesSkill
- to-issues-yesSkill
- to-prdSkill
- to-specSkill
- to-spec-yesSkill
- to-ticketsSkill
- to-tickets-yesSkill
- triageSkill
- wayfinderSkill
- wayfinder-yesSkill
- work-on-issuesSkill
- chief-of-staffSkill
- claude-handoffSkill
- loop-meSkill
- setup-ts-deep-modulesSkill
- software-factorySkill
- wizardSkill
- writing-beatsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- git-guardrails-claude-codeSkill
- migrate-to-shoehornSkill
- scaffold-exercisesSkill
- setup-pre-commitSkill
- edit-articleSkill
- obsidian-vaultSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- teachSkill
- to-questionnaireSkill
- wait-whatSkill
- writing-for-agentsSkill
- thai-docxSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Distinctive: line 9
Run static analysis using fallow and fix issues that it suggests.
- Distinctive: line 12
JS/TS (Pre-check): Run static analysis.
- Very specific: line 13
Check if installed: fallow --version.
- Distinctive: line 17
If staged: auto-apply safe fixes, re-run audit to verify.
- Distinctive: line 18
If unstaged: report-only (no modification).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Find Mismatch
Run static analysis using fallow and fix issues that it suggests. Walk through every file. Focus only on runtime failures/bugs and fix them. Do NOT report style, formatting, performance suggestions, docs/tests, or "consider using X".
1. Process
- JS/TS (Pre-check): Run static analysis.
- Check if installed:
fallow --version. - Install globally if missing:
npm install -g fallow. - Execute audit:
fallow audit --format json --quiet. - Filter findings by git status:
git diff --staged --name-only. - If staged: auto-apply safe fixes, re-run audit to verify.
- If unstaged: report-only (no modification).
- Check if installed:
- Review Checklist: Apply checklist to all changes.
- Report: Format findings using the specified template.
2. Checklist Categories
1. Cross-Boundary Contracts
- Calling mismatch: Check RPC, HTTP, IPC, event name/subject match receiver.
- Param names/types:
userIdvsuser_id, string vs number, flat vs wrapped. - Return type: Field accesses (
result.field) must match return signature.
2. Serialization & Deserialization
- Casing:
snake_casein DB/backend vscamelCasein JSON/frontend. - Optionals: Field expected by receiver but optional in producer.
- Enums/discriminators: Discriminant fields (
type,kind) and variants match. - Base64: Double-encoding layers.
3. Logic Bugs
- Double counting: Counters incremented both in loop/branch and outside.
- Off-by-one: Index, pagination bounds (
page <= totalvspage < total). - Conditions: Redundant/dead flags, unreachable statements, shadowed variables.
4. Property & Method Access
- Null derefs: Method calls or array index access (
items[0].name) without null/length checks. - Optional chaining: Stop check too early (e.g.
user?.address.streetstill crashes ifaddressis null). - This context: Callback bindings in classes.
5. Async & Concurrency
- Race conditions: Shared mutable states, parallel filesystem accesses without coordination.
- Missing
await: Promise ignored, silent errors. - Leaks: File/DB/network connections not closed in error paths.
6. CSS & Styling
- HSL variables: Raw HSL components (
0 0% 100%) instead of functional format (hsl(0 0% 100%)) fail in Tailwind v4 (unlike v3). - Inline themes: Circular references, selector mismatch (class vs data-theme).
7. Placeholder & Stub Code
- Unused declarations/files/dependencies, TODO comments, empty catch blocks.
3. Language-Specific Pitfalls
- Python: Hallucinated library methods (pandas, numpy, requests), sync/asyncio confusion, mutable default arguments (
def f(x=[])), silent indentation drops. - JS/TS: Backend (Node) vs Frontend (Browser) API mix-ups,
anyabuse, type-only import mismatches, barrel file false positives (exported but unused in production, used in tests/libraries). - C++: Raw vs smart pointer mix-ups, missing standard library header
#include, uninitialized variables, buffer overflows. - Rust: Borrow checker lifetime overcomplication,
unwrap()onNone/Err, locking across.awaityield points. - Java / .NET: Hallucinated annotations/attributes, LINQ N+1 queries, Entity Framework model snapshot drift / missing migrations (check model changes under
Entities/againstMigrations/). - Go: WaitGroup/Channel deadlocks, unexported struct fields in JSON, defer in loop, map concurrent access.
- PHP: Loose type comparisons (
==vs===), array vs object access, key undefined.
4. Fallow Finding Mapping & Fixes
| Fallow Type | Checklist Category | Auto-Fix Action |
unused_exports | Placeholder & Stub | Remove export (if used locally) or entire declaration. |
unused_files | Placeholder & Stub | Delete file (check dynamic imports first). |
unused_dependencies | Placeholder & Stub | Remove dependency from package.json. |
circular_dependencies | Cross-Boundary | Defer to manual review (causes init bugs). |
complexity/duplication | Logic Bugs | Defer to manual review. |
5. Output Format
Include ## Review Summary header (only if JS/TS project):
## Review Summary
- **Manual review bugs found**: N
- **Fallow auto-fixed**: N findings (staged files only)
- **Fallow non-auto-fixable**: N findings
- **Fallow verdict**: pass / failFormat individual findings (add [fallow] tag for fallow-sourced bugs):
## Bug #1
- **File**: <path>:<line>
- **Category**: <category>
- **What's wrong**: <description>
- **Runtime effect**: <effect>
- **Fix**: <code>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.

