directory-cross-examination
Skill3 starsChanged 3 days agoApache-2.0View on GitHub
Use when analyzing directories before archiving, deleting, or consolidating. Use when multiple directories might contain the same project at different stages. Use when you need to verify no unique content will be lost before moving files. Use when the user says "analyze these directories" or "should we keep these?"
In this repository37 other files it gives its agents.
- docs/manual/agents.mdAGENTS.md
- ablate-combined-changesSkill
- agent-supervisor-methodologySkill
- benchmark-comparisonSkill
- browser-vlm-acceptanceSkill
- claim-verificationSkill
- claude-code-best-practicesSkill
- code-attributionSkill
- comms-connectSkill
- condition-based-waitingSkill
- conference-intelligenceSkill
- deep-research-methodologySkill
- defense-in-depthSkill
- detect-deployment-thrashingSkill
- doc-freshness-auditorSkill
- eval-harnessSkill
- github-comment-managerSkill
- github-deep-researchSkill
- github-issue-responseSkill
- harness-setupSkill
- issue-closure-strategistSkill
- issue-quality-assessmentSkill
- k8s-configmap-runtime-patchSkill
- k8s-config-persistence-trapSkill
- maintainer-profilingSkill
- measure-before-theorizeSkill
- multi-phase-optimization-campaignSkill
- phase-trackerSkill
- pptx-slide-creationSkill
- pr-issue-scannerSkill
- public-root-reproducibilitySkill
- repo-organizerSkill
- root-cause-tracingSkill
- technique-versioning-workflowSkill
- wrong-layer-debuggingSkill
- wrong-theory-cascade-preventionSkill
- youtube-transcriberSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before archiving, moving, or deleting any directory
- Distinctive: line 15
When multiple directories appear to be variants of the same project
- Distinctive: line 16
When the user asks "do we need these?" or "what should we do with these?"
- Very specific: line 17
When directories share naming patterns (e.g., slurm-*, nccl-*, deepep-*)
- Distinctive: line 46
Read EVERY README.md and CLAUDE.md
- Distinctive: line 47
Read key config files (Dockerfile, *.yaml, *.conf)
- Distinctive: line 49
Check for test results, passing proofs, deployment artifacts
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Directory Cross-Examination
Overview
Systematic analysis of directories to determine what's unique, what's duplicate, and what's safe to archive — without making mistakes. Never move or delete anything until the full cross-examination is complete and the user has reviewed findings.
When to Use
- Before archiving, moving, or deleting any directory
- When multiple directories appear to be variants of the same project
- When the user asks "do we need these?" or "what should we do with these?"
- When directories share naming patterns (e.g.,
slurm-*,nccl-*,deepep-*)
Core Principle
Read everything. Compare everything. Recommend only. Act only with explicit approval.
The Process
Phase 1: Inventory (collect raw facts, no judgment)
For each directory, collect ALL of:
# Size, git status, remote, branch, dirty files, .claude presence
du -sh DIR
git -C DIR remote -v | head -2
git -C DIR branch --show-current
git -C DIR log --oneline -5
git -C DIR status --short | wc -l # dirty count
[ -d DIR/.claude ] && echo "has .claude"Also check:
- Session activity from provenance DB (if available)
- GitHub repo status (pushed? unpushed commits?)
- Nested git repos inside
Phase 2: Content Analysis (read the actual files)
- Read EVERY README.md and CLAUDE.md
- Read key config files (Dockerfile, *.yaml, *.conf)
- List unique file types and counts
- Check for test results, passing proofs, deployment artifacts
Phase 3: Cross-Compare (the critical step)
Build a comparison matrix:
| Content Type | Dir A | Dir B | Dir C |
| K8s manifests | 14 YAMLs | 15 YAMLs | 9 YAMLs |
| Tests passing | No | No | Yes (NCCL+FSDP) |
| Helm chart | Yes | No | No |
| ... | ... | ... | ... |
For each piece of unique content, ask:
- Does this exist ANYWHERE else in the workspace?
- Is this content superseded by a newer version elsewhere?
- Would losing this content prevent reproducing past work?
Phase 4: Classify
Assign each directory ONE role:
- CANONICAL: The production-ready, actively used version
- REFERENCE: Contains unique content not in canonical (e.g., Helm charts, experimental variants)
- DUPLICATE: Same content exists in canonical or reference
- HISTORICAL: Older version, all content superseded
Phase 5: Present Findings (STOP here — do not act)
Present to user:
- Which directory is canonical and why (with evidence)
- What unique content exists in each non-canonical directory
- Specific files that would be lost if archived
- Recommended action for each directory
CRITICAL: Do NOT move, archive, or delete anything without explicit user approval.
Red Flags — STOP and Ask
- Directory has dirty files → check what they are before recommending archive
- Directory has unpushed commits → push first or flag as data loss risk
- Directory has .claude dir → it was actively used by Claude sessions
- Directory has test results → may contain proof of working state
- User says "just archive it" but you haven't read the content → READ FIRST
Common Mistakes
| Mistake | Prevention |
| Archiving before reading content | Always read READMEs and key files |
| Missing unique content in subdirs | Check /hack, /experiments, nested repos |
| Assuming same remote = same content | Different branches may have unique work |
| Moving files without checking dirty status | Always check git status --short |
| Acting before user approves | Present findings, wait for explicit go-ahead |
<!-- imported on 2026-10-31 by tools/import-skills.py from a native Claude Code instance's skill library; the source site's names, ids, hosts and paths are scrubbed to <placeholders>; its other files were not copied -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

