From skillkit-essentials
Generates accurate README.md files by scanning codebase, verifying claims with 5-layer anti-hallucination validation, testing scripts, and tracking citations. Use for creating new READMEs, updates, or accuracy checks.
npx claudepluginhub rfxlamia/skillkit --plugin skillkit-essentialsThis skill uses the workspace's default tool permissions.
**Create comprehensive README.md files grounded in codebase reality.**
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Create comprehensive README.md files grounded in codebase reality.
README Expert uses validation-first methodology to generate accurate, comprehensive README files by:
Anti-Hallucination Core: Research shows AI README hallucinations occur in 3-27% of outputs. This skill reduces that to near-zero through systematic verification.
Choose workflow based on task:
┌─────────────────────────────────────┐
│ What is your README task? │
└───────────┬─────────────────────────┘
│
┌───────┴───────┐
│ │
▼ ▼
┌─────────┐ ┌──────────┐
│ CREATE │ │ VALIDATE │
│ NEW │ │ EXISTING │
└────┬────┘ └────┬─────┘
│ │
▼ ▼
Section 1 Section 2
(Full Flow) (Validation Only)
Decision Criteria:
| Scenario | Route | Sections Used |
|---|---|---|
| No README exists | CREATE NEW | 1 (Full Workflow) |
| README exists but incomplete | CREATE NEW | 1 (Full Workflow) |
| README exists, check accuracy | VALIDATE | 2 (Validation Only) |
| Update sections of README | CREATE NEW | 1 (Partial execution) |
| Verify scripts still work | VALIDATE | 2 (Focus Layer 3) |
Use when: Creating new README or major overhaul.
Time: 3-5 minutes with automation Output: Complete, validated README.md Quality Target: 95%+ accuracy, 0 hallucinations
Goal: Extract accurate project facts from actual files.
Load Knowledge: knowledge/foundation/codebase-scanner.md
Steps:
Detect Project Type
# Find config files
Glob: pattern="{package.json,pyproject.toml,Cargo.toml,go.mod}"
# Read detected file
Read: file_path="<detected_config>"
Extract Metadata
Scan Structure
# Find source directories
Glob: pattern="src/**/*.{py,js,ts,go,rs}"
Glob: pattern="lib/**/*.{py,js,ts}"
# Find tests
Glob: pattern="{tests,test,__tests__}/**/*"
# Find docs
Glob: pattern="docs/**/*.md"
Discover Features
# Find public API
Grep: pattern="^(export|class|def)\s+\w+" output_mode="content"
# Find CLI commands
Grep: pattern="(scripts|entry_points|bin)" path="<config_file>"
# Find environment variables
Grep: pattern="(process\.env|os\.environ|os\.Getenv)"
Output: Verified project facts with source citations.
Anti-Hallucination Check: Every fact must have source file reference.
Goal: Choose appropriate README structure.
Load Knowledge: knowledge/application/template-library.md
Templates by Project Type:
| Project Type | Template | Key Sections |
|---|---|---|
| Library/Package | standard-readme | Title, Install, Usage, API, License |
| CLI Tool | CLI-focused | Title, Install, Commands, Examples, Config |
| Web App | App-focused | Title, Features, Deploy, Config, Develop |
| Framework | Framework | Title, Quick Start, Concepts, API, Extend |
| API Service | API-focused | Title, Endpoints, Auth, Examples, Deploy |
Selection Criteria:
Output: Selected template structure.
Goal: Write README sections with verified content.
Standard Structure:
Title & Badges
# {project_name}
> {description from package metadata - EXACT quote}
  
Verification:
Installation
## Installation
```bash
npm install {exact_package_name}
**Verification:**
- Package name from metadata (exact)
- Installation command matches package manager detected
- Prerequisites from "engines" field
Usage Examples
## Usage
```javascript
import { functionName } from 'package-name'
// Example verified from examples/ directory or tests/
const result = functionName(input)
**Verification:**
- Imports verified: Grep for actual exports
- Function signatures extracted from actual code
- Examples copied from examples/ or tests/ directories
API Documentation
## API
### `functionName(param: Type): ReturnType`
Description verified from code comments/docstrings.
Verification:
Configuration
## Configuration
Required environment variables:
- `VAR_NAME` - Description from .env.example
Verification:
Testing
## Testing
```bash
npm test
**Verification:**
- Test command from package.json scripts.test
- Test framework detected from dependencies
Contributing, License, Contact
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md)
## License
{license from package.json} - See [LICENSE](./LICENSE)
Verification:
Output: Complete README draft with inline citations.
Goal: Verify all claims are accurate.
Load Knowledge: knowledge/foundation/validation-checklist.md
Execute 5-Layer Validation:
Layer 1: File Existence
# Verify all referenced files
Read: file_path="<each_referenced_file>"
# Pass: File exists ✅
# Fail: Remove reference from README ❌
Layer 2: Content Accuracy
Layer 3: Execution Validity
Load Knowledge: knowledge/application/script-executor.md
# Test installation command (if safe)
# Test CLI commands with --help flag
# Extract code examples to temp files and execute
Layer 4: Link Integrity
# Internal links
Read: file_path="<each_linked_file>"
# External URLs (sample check)
WebFetch: url="<external_url>" prompt="Check accessibility"
# Anchor links
Grep: pattern="^#+\s+{anchor_text}" path="README.md"
Layer 5: Citation Traceability
Output: Validation report with pass/fail for each layer.
Goal: Ensure README meets quality standards.
Load Knowledge: knowledge/application/quality-standards.md
Quality Checklist:
Scoring Rubric:
Target: ≥8/10 for publication
Output: Quality score and improvement recommendations.
Deliverables:
Final Checks Before Delivery:
Use when: README exists, need to verify accuracy.
Time: 2-3 minutes Output: Validation report with pass/fail status
Load Knowledge: knowledge/foundation/validation-checklist.md
Execute 5-Layer Validation:
Generate Report:
README Validation Report
========================
Layer 1: ✅ PASS / ❌ FAIL (details)
Layer 2: ✅ PASS / ⚠️ WARNING (details)
Layer 3: ✅ PASS / ❌ FAIL (details)
Layer 4: ✅ PASS / ❌ FAIL (details)
Layer 5: ✅ PASS / ⚠️ WARNING (details)
OVERALL: ✅ READY / ⚠️ NEEDS FIXES / ❌ MAJOR ISSUES
Hallucination Risk: LOW/MEDIUM/HIGH
Confidence: XX%
Provide Fix Recommendations:
Core Rules (Always Follow):
✅ DO: Verify every file reference with Read/Glob
✅ DO: Extract exact quotes from source files
✅ DO: Test commands before documenting them
✅ DO: Link claims to source files (internal tracking)
✅ DO: Acknowledge uncertainty when confidence <90%
❌ DON'T: Assume standard structure without checking
❌ DON'T: Invent features not found in code
❌ DON'T: Copy examples from other projects
❌ DON'T: Paraphrase or "improve" actual descriptions
❌ DON'T: Include marketing claims without evidence
Hallucination Detection Patterns:
| Red Flag | Example | Fix |
|---|---|---|
| Invented features | "Supports automatic retry" (no retry code) | Remove or find evidence |
| Fake examples | api.configure({theme:'dark'}) (method doesn't exist) | Use actual API |
| Missing files | "See docs/guide.md" (file doesn't exist) | Remove reference or create file |
| Wrong versions | "Requires Node 14+" (actually requires 18+) | Use exact version from metadata |
| Unsupported claims | "The fastest solution" | Remove or cite benchmarks |
All detailed guides are in knowledge/ directory.
Quick Access:
knowledge/foundation/codebase-scanner.mdknowledge/foundation/validation-checklist.mdknowledge/application/script-executor.mdknowledge/application/template-library.mdknowledge/application/quality-standards.mdNavigation: See knowledge/INDEX.md for complete map.
User: "Create a README for my new npm package"
→ Section 1 (Full Workflow)
→ Scan package.json → Select template → Generate → Validate → Deliver
User: "Check if my README is still accurate"
→ Section 2 (Validation Only)
→ Run 5-layer validation → Report issues → Suggest fixes
User: "Update README after refactoring API"
→ Section 1 (Focus on API section)
→ Scan new API → Update API section → Validate → Deliver
User: "Make sure all code examples in README work"
→ Section 2 Layer 3 (Execution Validity)
→ Extract examples → Execute → Report failures → Fix
Token Efficiency:
Confidence Scoring:
Script Execution Safety:
--help, --version, --listinstall, build, deployrm, drop, deleteCurrent Version: 1.0 Last Updated: 2025-11-13 Status: Production Ready
Changelog: