critical-analysis
Skill4 starsChanged 8 months agoMITArchived repositoryView on GitHub
Multi-role critique system for ML experiments and architecture decisions. Based on: Solo Performance Prompting (NAACL 2024), CrewAI role taxonomy, Bermingham 13-agent DA-as-gate, De Bono Six Thinking Hats (Black Hat gating). Before any of the following — run Quick Mode without waiting for user request: - Architecture or design decision (new integration, refactor, layer change) - ML experiment launch (clustering, training run, hyperparameter search) - Infrastructure change (Terraform, Docker, secrets, permissions) - Parameter choice without prior ablation Design doc check: for…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- poemswe/co-researchertheir own version, first seen Jul 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- poemswe/co-researcher★ 129same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- claude-api-patternsSkill
- database-migration-safetySkill
- data-validationSkill
- design-doc-creatorSkill
- experiment-trackingSkill
- fastapi-patternsSkill
- github-actionsSkill
- htmx-frontendSkill
- infra-yandex-cloudSkill
- langgraph-patternsSkill
- ml-data-handlingSkill
- multimodal-routerSkill
- nlp-slm-patternsSkill
- predictive-analyticsSkill
- prompt-engineeringSkill
- python-project-standardsSkill
- rag-vector-dbSkill
- skill-developerSkill
- supply-chain-auditorSkill
- test-first-patternsSkill
- windows-developerSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 21
If any role flags CRITICAL — surface it to the user before proceeding.
- Distinctive: line 44
Run all 8 roles simultaneously in your reasoning.
- Very specific: line 60
Anti-collapse rule: Before writing "clear" for any role — cite what was evaluated.
- Distinctive: line 71
If BLOCKED: surface the finding to the user.
- Distinctive: line 77
Before any experiment launch, answer all 4 checks:
- Distinctive: line 84
NOT plateau → continue, document delta
- Distinctive: line 136
Debate: all 8 findings, unfiltered
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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: Critical Analysis (v1.1)
Multi-role critique system for ML experiments and architecture decisions. Based on: Solo Performance Prompting (NAACL 2024), CrewAI role taxonomy, Bermingham 13-agent DA-as-gate, De Bono Six Thinking Hats (Black Hat gating).
When to Load (Auto-Default Behavior)
Before any of the following — run Quick Mode without waiting for user request:
- Architecture or design decision (new integration, refactor, layer change)
- ML experiment launch (clustering, training run, hyperparameter search)
- Infrastructure change (Terraform, Docker, secrets, permissions)
- Parameter choice without prior ablation
Design doc check: for any architectural decision, verify design-doc.md exists and
guides this decision. If missing → [DA]: "No design doc — decisions are ungrounded."
Quick Mode: if all 8 roles return "clear" — proceed. If any role flags CRITICAL — surface it to the user before proceeding.
This is NOT optional. Critique runs before code, not after.
8-Role Taxonomy
| Role | Source | Key Question |
| [Security] Security Sentinel | CrewAI Code Security Auditor | Injection, auth, secrets, attack surface — what can be exploited? |
| [Perf] Performance Analyst | CrewAI Performance Optimizer | O(n²), wasted iterations, memory — where is 80% of cost wasted? |
| [DA] Devil's Advocate | Bermingham 13-agent + Black Hat | What is the strongest argument AGAINST this? What breaks in 90 days? |
| [Crutch] Crutch Identifier | Project history: defectoscopy + hub | Is this a reusable pattern or a workaround being institutionalized? |
| [Strategy] Strategic Horizon | DX/tech debt, 6-month view | New external dep / >3 files / new interface contract? Flag only if yes. |
| [ML] ML Experiment Auditor | arxiv 2603.15916, project history | Are we at a plateau? Is this experiment worth running at all? |
| [TestCov] Testing Coverage | Qodo/CodeRabbit/Anthropic tool | Does this change need new tests? Are edge cases covered? |
| [Obs] Observability Enforcer | Google SRE, OpenTelemetry practices | Can we debug this in prod? Are logs/metrics/traces in place? |
Quick Mode Protocol (SPP — Solo Performance Prompting)
Run all 8 roles simultaneously in your reasoning. Output before proceeding:
QUICK CRITIQUE:
[Security]: <finding + what was evaluated, or "clear — evaluated: X">
[Perf]: <finding + what was evaluated, or "clear — evaluated: X">
[DA]: <top objection with 90-day scenario, or "no blockers — reason">
[Crutch]: <pattern or crutch + evidence, or "pattern — reusable: evidence">
[Strategy]: <flag only if new dep/3+ files/new contract; else "below threshold">
[ML]: <plateau/pivot signal, or "N/A — not an experiment">
[TestCov]: <missing test areas, or "clear — existing tests cover: X">
[Obs]: <observability gap, or "clear — logs/metrics in place">
VERDICT: PROCEED / BLOCKED by [Role] — [reason]Anti-collapse rule: Before writing "clear" for any role — cite what was evaluated.
WRONG: [Security]: clear
RIGHT: [Security]: clear — evaluated: no new endpoints, no user input, no new deps
[Strategy] falsifiability threshold: Flag ONLY if ≥1 of:
- Introduces new external dependency
- Touches >3 files
- Creates new interface contract
- Estimated follow-up work >5 person-days
Otherwise:
below threshold — not flagging
If BLOCKED: surface the finding to the user. Do not write code around a CRITICAL finding.
ML Experiment Audit Protocol
Before any experiment launch, answer all 4 checks:
PLATEAU CHECK Plateau = absolute delta < 0.01 AND relative delta < 5% (both conditions). Example: metric=0.65, new=0.659 → 0.009 abs, 1.4% rel → PLATEAU Example: metric=0.65, new=0.670 → 0.020 abs, 3.1% rel → NOT plateau
- PLATEAU → STOP. "Ceiling at [metric]. Pivot to: [2 alternatives from different algorithm families]."
- NOT plateau → continue, document delta
HYPOTHESIS QUALITY
- Falsifiable? What result disproves it?
- Baseline exists? (If NO → block tuning. Run baseline first.)
- Success threshold defined? ("any improvement" is not a threshold)
OBSERVABILITY SLA
- ETA > 30 min? Set CronCreate check at ETA / 2.
- Hung condition: CPU < 5% for 15 min OR no log output for 30 min
- Artifact save: checkpoint, metrics JSON, sample predictions, manifest entry
- Kill-switch defined?
MACRO PRIORITY
- Is this module a bottleneck? (Show profiling data or reasoning.)
- Will improvement here move the overall system metric?
- What else could run in parallel?
Pre-flight template (required before any experiment > 30 min):
Hypothesis: [specific falsifiable claim]
Baseline: [prior result, or "NONE — run baseline first"]
Success: [metric >= X, or cost <= Y]
Pilot: [5% subset, ~5 min — validates I/O before full run]
SLA: [check interval, hung condition, artifact path]Crutch vs. Pattern Rubric
Crutch indicators:
- Hardcoded value without named constant or config
- "temporary" comment older than 1 sprint
- Logic duplicated in 2+ places without abstraction
- TODO/FIXME with no owner or date
- Architecture built for current single user, not contract
Pattern indicators (safe):
- Reused across 3+ contexts with same interface
- Decision documented with explicit rationale
- Testable contract exists
- Another team could use it without asking questions
Deep Mode (trigger: [CRITIQUE] in user prompt)
Launch 8 subagents via Agent tool in parallel — one per role.
Each receives: context, the proposed decision, role system prompt from resources/role-prompts.md.
Synthesize via D3:
- Debate: all 8 findings, unfiltered
- Deliberate: classify each as CRITICAL / HIGH / LOW
- Decide: recommendation + explicit acknowledgment of each CRITICAL
Patterns from Project History (Grounded in Real Failures)
From defectoscopy (ML pipeline):
- K=3000, 6h, no timer, no pilot, no baseline → [ML] + [Perf] + [DA] would block
- Hexagonal arch scaffolded before any real code → [DA] + [Crutch] + [Perf] would block
- Clustering optimized when clustering was not the bottleneck → [ML] + [Perf] + [DA]
From techcon_hub (infrastructure):
- GitHub PAT tokens in chat (3 incidents) → [Security] CRITICAL
terraform apply -auto-approvedestroyed controller node → [Security] + [DA]- Secrets in CI only — developers locked out of local dev → [Security] + [Strategy]
Resource Index
Load only when explicitly needed (not auto-injected):
resources/role-prompts.md— Full SPP prompts for all 8 roles (Deep Mode)resources/ml-audit-protocol.md— Plateau detection, pivot logic, experiment manifestresources/failure-patterns.md— Annotated failure catalog (defectoscopy + hub)
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.

