Repository navigation
feat: CLAUDE.md project guide and den-debugging skill - #523
Merged
Merged
Conversation
sini
force-pushed
the
feat/den-debugging-skill
branch
from
May 12, 2026 18:54
1b7e7ef to
1be0240
Compare
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
force-pushed
the
feat/den-debugging-skill
branch
from
May 12, 2026 20:32
63f368e to
ba29999
Compare
theutz
approved these changes
May 12, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
denTestharnessden-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.