Skip to content

feat: CLAUDE.md project guide and den-debugging skill - #523

Merged
sini merged 3 commits into
denful:mainfrom
sini:feat/den-debugging-skill
May 12, 2026
Merged

sini merged 3 commits into
denful:mainfrom
sini:feat/den-debugging-skill

Conversation

@sini

@sini sini commented May 12, 2026 •

Copy link
Copy Markdown
Collaborator

Why

As den's pipeline grows in complexity, contributors (both human and AI-assisted) need clear orientation to work effectively. New contributors face a steep ramp-up: layered abstractions like content wrappers, effect handlers, and key classification mean bugs often manifest far from their root cause. Without guidance, debugging sessions wander through dozens of files before finding the right entry point.

This PR provides two complementary resources:

What

CLAUDE.md — project guide

A single-file orientation for the den codebase covering:

  • Repository layout and what each directory contains
  • Core concepts (entities, aspects, classes, provides, policies, pipes, scopes)
  • The FX pipeline stages and four aspect shapes
  • Development commands, testing patterns, and the denTest harness
  • Code style conventions (idiomatic Nix, error messages, internal markers)
  • Debugging and tracing guidance with specific handler insertion points for dedup, emit, classification, and nested key walking

den-debugging skill (.claude/skills/den-debugging.md)

A structured debugging workflow for Claude Code users, distilled from actual bug-fixing sessions. Guides through five phases: understand report, trace code path, write failing test, fix, validate. References CLAUDE.md for entry point tables and tracing points rather than duplicating them.

Evaluated against 3 test prompts (multi-file merge bug, vague parametric report, test failure). With-skill runs used 19% fewer tokens on average and achieved 100% assertion pass rate vs 92% without. Note: the 92% is still with my (sini) local agent memory -- a standalone claude session would likely not perform that high.

@sini sini changed the title feat: add den-debugging skill for structured bug investigation feat: CLAUDE.md project guide and den-debugging skill May 12, 2026
@sini sini added documentation Improvements or additions to documentation enhancement New feature or request allow-ci allow all CI integration tests super-autocompleted "Artificial Intelligence" terms nothing real, "Super Intelligence" is even more of a lie. labels May 12, 2026
@sini
sini force-pushed the feat/den-debugging-skill branch from 1b7e7ef to 1be0240 Compare May 12, 2026 18:54
sini added 3 commits May 12, 2026 13:32
Distills the test-first debugging workflow into a reusable skill:
- Phased approach: understand report, trace code path, write failing
  test, fix, validate
- Entry point table mapping symptoms to source files
- Test patterns for denTest/nix-unit harness
- Common structural markers for pipeline debugging
Add guidance for namespace test setup, npins user configs,
and aspectContentType shallow merge awareness from debugging
a real user regression report.
@sini
sini force-pushed the feat/den-debugging-skill branch from 63f368e to ba29999 Compare May 12, 2026 20:32
@sini
sini requested a review from theutz May 12, 2026 20:33
@sini
sini merged commit 7cdfb07 into denful:main May 12, 2026
10 of 11 checks passed
charlesfire pushed a commit to charlesfire/den that referenced this pull request May 16, 2026
## Why

As den's pipeline grows in complexity, contributors (both human and
AI-assisted) need clear orientation to work effectively. New
contributors face a steep ramp-up: layered abstractions like content
wrappers, effect handlers, and key classification mean bugs often
manifest far from their root cause. Without guidance, debugging sessions
wander through dozens of files before finding the right entry point.

This PR provides two complementary resources:

## What

### CLAUDE.md — project guide

A single-file orientation for the den codebase covering:
- Repository layout and what each directory contains
- Core concepts (entities, aspects, classes, provides, policies, pipes,
scopes)
- The FX pipeline stages and four aspect shapes
- Development commands, testing patterns, and the `denTest` harness
- Code style conventions (idiomatic Nix, error messages, internal
markers)
- Debugging and tracing guidance with specific handler insertion points
for dedup, emit, classification, and nested key walking

### den-debugging skill (`.claude/skills/den-debugging.md`)

A structured debugging workflow for Claude Code users, distilled from
actual bug-fixing sessions. Guides through five phases: understand
report, trace code path, write failing test, fix, validate. References
CLAUDE.md for entry point tables and tracing points rather than
duplicating them.

Evaluated against 3 test prompts (multi-file merge bug, vague parametric
report, test failure). With-skill runs used 19% fewer tokens on average
and achieved 100% assertion pass rate vs 92% without. Note: the 92% is
still with my (sini) local agent memory -- a standalone claude session
would likely not perform that high.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests documentation Improvements or additions to documentation enhancement New feature or request super-autocompleted "Artificial Intelligence" terms nothing real, "Super Intelligence" is even more of a lie.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants