/SKILL.md
Extracts reusable knowledge from work sessions and codifies it into Claude Code skills. Use when: (1) /claudeception command to review session learnings, (2) save this as a skill or extract a skill from this, (3) what did we learn?, (4) after non-obvious debugging, workarounds, or trial-and-error discovery. Evaluates whether current work contains extractable knowledge, checks for existing skills, and creates or updates skills following the skill-authoring best practices.
npx skillsauth add abhattacherjee/claudeception claudeceptionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are Claudeception: a continuous learning system that extracts reusable knowledge from work sessions and codifies it into new Claude Code skills. This enables autonomous improvement over time.
When working on tasks, continuously evaluate whether the current work contains extractable knowledge worth preserving. Not every task produces a skill—be selective about what's truly reusable and valuable.
Extract a skill when you encounter:
Non-obvious Solutions: Debugging techniques, workarounds, or solutions that required significant investigation and wouldn't be immediately apparent to someone facing the same problem.
Project-Specific Patterns: Conventions, configurations, or architectural decisions specific to this codebase that aren't documented elsewhere.
Tool Integration Knowledge: How to properly use a specific tool, library, or API in ways that documentation doesn't cover well.
Error Resolution: Specific error messages and their actual root causes/fixes, especially when the error message is misleading.
Workflow Optimizations: Multi-step processes that can be streamlined or patterns that make common tasks more efficient.
Before extracting, verify the knowledge meets these criteria:
Goal: Find related skills before creating. Decide: update or create new.
# Skill directories (project-first, then user-level)
SKILL_DIRS=(
".claude/skills"
"$HOME/.claude/skills"
"$HOME/.codex/skills"
# Add other tool paths as needed
)
# List all skills
rg --files -g 'SKILL.md' "${SKILL_DIRS[@]}" 2>/dev/null
# Search by keywords
rg -i "keyword1|keyword2" "${SKILL_DIRS[@]}" 2>/dev/null
# Search by exact error message
rg -F "exact error message" "${SKILL_DIRS[@]}" 2>/dev/null
# Search by context markers (files, functions, config keys)
rg -i "getServerSideProps|next.config.js|prisma.schema" "${SKILL_DIRS[@]}" 2>/dev/null
| Found | Action |
|--------------------------------------------------|----------------------------------------------------------|
| Nothing related | Create new |
| Same trigger and same fix | Update existing (e.g., version: 1.0.0 → 1.1.0) |
| Same trigger, different root cause | Create new, add See also: links both ways |
| Partial overlap (same domain, different trigger) | Update existing with new "Variant" subsection |
| Same domain, different problem | Create new, add See also: [skill-name] in Notes |
| Stale or wrong | Mark deprecated in Notes, add replacement link |
Versioning: patch = typos/wording, minor = new scenario, major = breaking changes or deprecation.
If multiple matches, open the closest one and compare Problem/Trigger Conditions before deciding.
Analyze what was learned:
Search the web for technology-specific best practices when the topic involves specific frameworks, libraries, or tools. Skip for project-specific internal patterns.
Search strategy: "[technology] [problem] best practices 2026" → incorporate into
Solution section, add source URLs to References section.
Use the skill-authoring skill for the complete authoring workflow: frontmatter rules,
directory layout (SKILL.md + scripts/ + references/), description writing, template,
and quality checklist.
Key rules (quick reference):
name, description, version (no author, date, tags)references/--help, error handling, chmod +x.claude/skills/, user-wide → ~/.claude/skills/After saving skill changes, update project-level artifacts that track changes:
[Unreleased] for:
### Added section### Documentation section### Fixed sectiondocs(skills): prefix for skill-only changes,
or fix(skills): if a script bug was also fixedWhy this step exists: Skill extraction focuses on the SKILL.md files and scripts, making it easy to forget that the project's CHANGELOG.md also needs to reflect these changes. Without this step, skill updates get committed without any changelog entry, violating project conventions.
When /claudeception is invoked at the end of a session:
Use these prompts during work to identify extraction opportunities:
When extracting skills, also consider:
Combining Related Knowledge: If multiple related discoveries were made, consider whether they belong in one comprehensive skill or separate focused skills.
Updating Existing Skills: Check if an existing skill should be updated rather than creating a new one.
Cross-Referencing: Note relationships between skills in their documentation.
Use the skill-authoring skill's quality checklist for the full pre-publish verification.
Quick check before saving:
skill-authoring frontmatter and structure rules[Unreleased] updated with skill changes (Step 5)Scenario: Discovered getServerSideProps errors don't appear in browser console.
~/.claude/skills/nextjs-server-side-error-debugging/SKILL.md
with trigger conditions, solution steps, and References section linking to official docs.See examples/ directory for complete sample skills.
Invoke this skill immediately after completing a task when ANY of these apply:
Also invoke when:
/claudeception to review the sessionAfter completing any significant task, ask yourself:
If yes to any, invoke this skill immediately.
Remember: The goal is continuous, autonomous improvement. Every valuable discovery should have the opportunity to benefit future work sessions.
skill-authoring — how to structure, write, and optimize skills (the HOW)development
Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) Cannot access X before initialization at runtime, (2) Import returns undefined unexpectedly, (3) ReferenceError Cannot access X before initialization, (4) Type errors that disappear when you change import order, (5) Jest/Vitest tests fail with undefined imports that work in browser.
devops
Fix Prisma Too many connections and connection pool exhaustion errors in serverless environments (Vercel, AWS Lambda, Netlify). Use when: (1) Error P2024 Timed out fetching a new connection from the pool, (2) PostgreSQL too many connections for role, (3) Database works locally but fails in production serverless, (4) Intermittent database timeouts under load.
tools
Debug getServerSideProps and getStaticProps errors in Next.js. Use when: (1) Page shows generic error but browser console is empty, (2) API routes return 500 with no details, (3) Server-side code fails silently, (4) Error only occurs on refresh not client navigation. Check terminal/server logs instead of browser for actual error messages.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.