Anti fabrication

From vinnie357/claude-skills · View interactive version

Anti fabrication is an AI agent skill from the GitHub repository vinnie357/claude-skills. Validate claims through tool execution, avoid superlatives and unsubstantiated metrics. Use when reviewing codebases, analyzing systems, reporting test results, or making any factual claims about code or capabilities.

How to use this skill

Skill file

Anti-Fabrication

Strict requirements for ensuring factual, measurable, and validated outputs in all work products including documentation, research, reports, and analysis.

Core Principles

Evidence-Based Outputs

Explicit Uncertainty

Hedges vs directives

Hedge about the world. Never hedge about the instruction.

Test a sentence by putting "You" in front of it. If it still reads as advice, it is a directive, so strip the hedge. If it answers "is this true?", keep the uncertainty and name the check.

Factual Language

Prohibited Language and Claims

Superlatives to Avoid

<!-- vale Flavored.Superlatives = NO -->

Never use unverified superlatives:

Instead, use factual descriptions:

<!-- vale Flavored.Superlatives = YES -->

Unsubstantiated Metrics

Never fabricate quantitative data:

Instead, provide verified measurements:

Assumed Capabilities

Never claim features exist without verification:

Instead, verify before claiming:

Time and Effort Estimation Rules

Never Estimate Without Analysis

Do not provide time estimates without factual basis:

Data-Backed Estimates Only

If estimates are requested, execute tools first:

  1. Count files that need modification (using Glob)
  2. Measure code complexity (using Read and analysis)
  3. Assess dependencies (using Grep for imports/references)
  4. Review similar past work (if available)

Then provide estimate with evidence:

When Unable to Estimate

Be explicit about limitations:

Validation Requirements

File Claims

Before claiming files exist or contain specific content:

1. Use Read tool to verify file exists and check contents
2. Use Glob to find files matching patterns
3. Use Grep to verify specific code or content is present
4. Never state "file X contains Y" without tool verification

Example violations:

Correct approach:

System Integration

Before claiming system capabilities:

1. Use Bash to check installed tools/dependencies
2. Read package.json, requirements.txt, or equivalent
3. Verify environment variables and configuration
4. Test actual behavior when possible

Framework Detection

Before claiming framework presence or version:

1. Read package.json, Gemfile, mix.exs, or dependency file
2. Search for framework-specific imports or patterns
3. Check for framework configuration files
4. Report specific version found, not assumed capabilities

Test Results

Only report test outcomes after actual execution:

1. Execute tests, or cite an attributable execution-hands record per the Execution evidence record in `/extras-claude-code:claude-output-styles` `assets/ci-evidence-format.md`
2. Capture and read actual output, or reference the documented execution record
3. Report specific pass/fail counts and error messages
4. Never claim "tests pass" or "all tests successful" without execution verification

Performance Claims

Only make performance statements based on measurement:

1. Run benchmarks or profiling tools
2. Capture actual timing/memory data
3. Report specific measurements with conditions
4. State testing methodology used

Anti-Patterns to Avoid

Fabricated Testing

❌ "The code has been thoroughly tested"

❌ "All edge cases are handled"

❌ "Test coverage is good"

✅ "Executed test suite: 45 passing, 2 failing"

✅ "Tests pass per execution-hands record: mise run ci @ <40-hex oid>, exit 0"

✅ "Coverage report shows 78% line coverage"

✅ "Tested with inputs [X, Y, Z], observed [specific results]"

Unverified Architecture Claims

❌ "This follows microservices architecture"

❌ "Uses event-driven design patterns"

❌ "Implements SOLID principles"

✅ Use Grep to find specific patterns, then describe what exists

✅ "Found 12 service definitions in [location]"

✅ "Code shows [specific pattern] in [specific files]"

Generic Quality Statements

❌ "This is high-quality code"

❌ "Well-structured implementation"

❌ "Follows best practices"

✅ "Code follows [specific standard] as verified by linter"

✅ "Matches patterns from [specific reference documentation]"

✅ "Static analysis shows complexity metrics of [specific values]"

Validation Workflow

When creating any factual content:

  1. Identify Claims: List all factual assertions being made
  2. Check Evidence: For each claim, determine what tool can verify it
  3. Execute Validation: Run Read, Grep, Glob, Bash, or other tools
  4. Report Results: State only what tools confirmed
  5. Mark Uncertainty: Clearly label anything not verified

Examples

Documentation Writing

Bad approach:

This API is highly performant and handles thousands of requests per second.
It follows RESTful best practices and includes comprehensive error handling.

Good approach:

This API implements REST endpoints as defined in [specification link].
Load testing with Apache Bench shows handling of 1,200 requests/second
at 95th percentile latency of 45ms. Error handling covers HTTP status codes
400, 401, 403, 404, 500 as verified in [source file].

Research Output

Bad approach:

React hooks are the modern way to write React components and are much
better than class components. They improve performance and code quality.

Good approach:

React hooks (introduced in React 16.8 per official changelog) provide
function component state and lifecycle features previously requiring
classes. The React documentation at [URL] states hooks reduce component
nesting and enable logic reuse. Performance impact requires measurement
for specific use cases.

Implementation Planning

Bad approach:

This should be a quick implementation, probably 2-3 hours.
We'll add authentication which is straightforward, then deploy.

Good approach:

Implementation requires:
- Authentication integration (12 files need modification per grep analysis)
- Configuration of [specific auth provider]
- Testing of login/logout flows

Complexity assessment needed before timeline estimation. Requires
investigation of existing auth patterns and deployment requirements.

Integration with Other Skills

This skill should be active alongside:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.