Update distill-best-practices to target skynet/best-practices repo

All paths now point to ~/dev/claude/projects/best-practices/ instead of
claude-foundations/best-practices/. The settings.yaml remains in
claude-foundations (where the pipeline config lives).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Paul O'Reilly
2026-03-28 17:48:58 +13:00
parent e8e572e0af
commit ec36f05e86

View File

@@ -2,9 +2,9 @@
name: distill-best-practices name: distill-best-practices
description: > description: >
Cross-project best practices distillation. Reads changed memory files from all tracked Cross-project best practices distillation. Reads changed memory files from all tracked
projects and proposes additions, updates, or removals to claude-foundations/best-practices/. projects and proposes additions, updates, or removals to ~/dev/claude/projects/best-practices/.
Run from any project -- always targets claude-foundations as output. Interactive -- presents Run from any project -- always targets skynet/best-practices repo as output. Interactive --
proposals for approval before making changes. presents proposals for approval before making changes.
allowed-tools: Read, Edit, Write, Glob, Grep, Bash(git -C *), Bash(git rev-parse *), Bash(ls *), Bash(cat *), Bash(head *), Bash(date *) allowed-tools: Read, Edit, Write, Glob, Grep, Bash(git -C *), Bash(git rev-parse *), Bash(ls *), Bash(cat *), Bash(head *), Bash(date *)
--- ---
@@ -16,10 +16,10 @@ You are extracting generalisable best practices from project-specific memory fil
### Pre-gathered context (read at runtime) ### Pre-gathered context (read at runtime)
The following files should be read using the Read tool at the start of execution: The following files should be read using the Read tool at the start of execution:
- `~/dev/claude/projects/claude-foundations/best-practices/.distill-state.json` — Distill state (if not found, treat as `{}`) - `~/dev/claude/projects/best-practices/.distill-state.json` — Distill state (if not found, treat as `{}`)
- `~/dev/claude/projects/claude-foundations/settings.yaml` — Settings (if not found, use defaults from instructions) - `~/dev/claude/projects/claude-foundations/settings.yaml` — Settings (if not found, use defaults from instructions)
- `~/dev/claude/projects/claude-foundations/BESTPRACTICES.md` — Current best-practices index - `~/dev/claude/projects/best-practices/BESTPRACTICES.md` — Current best-practices index
- Use Glob to list `~/dev/claude/projects/claude-foundations/best-practices/*.md` for available topic files - Use Glob to list `~/dev/claude/projects/best-practices/*.md` for available topic files
- Use Glob to list `~/dev/claude/projects/*/` for the projects directory listing - Use Glob to list `~/dev/claude/projects/*/` for the projects directory listing
## Instructions ## Instructions
@@ -30,9 +30,9 @@ The project root is `~/dev/claude` (hardcoded — change at the top of the `!`co
Key paths: Key paths:
- **Settings**: `~/dev/claude/projects/claude-foundations/settings.yaml` - **Settings**: `~/dev/claude/projects/claude-foundations/settings.yaml`
- **Best practices dir**: `~/dev/claude/projects/claude-foundations/best-practices/` - **Best practices dir**: `~/dev/claude/projects/best-practices/`
- **Best practices index**: `~/dev/claude/projects/claude-foundations/BESTPRACTICES.md` - **Best practices index**: `~/dev/claude/projects/best-practices/BESTPRACTICES.md`
- **Distill state**: `~/dev/claude/projects/claude-foundations/best-practices/.distill-state.json` - **Distill state**: `~/dev/claude/projects/best-practices/.distill-state.json`
Read `settings.yaml` (pre-gathered above). Read `settings.yaml` (pre-gathered above).
@@ -109,11 +109,11 @@ For each approved proposal:
If a new best-practices topic file is needed: If a new best-practices topic file is needed:
- Create it following the format of existing files (top-level heading, subheadings per entry, 2-6 lines per entry) - Create it following the format of existing files (top-level heading, subheadings per entry, 2-6 lines per entry)
- Add it to `~/dev/claude/projects/claude-foundations/BESTPRACTICES.md` with a one-line description - Add it to `~/dev/claude/projects/best-practices/BESTPRACTICES.md` with a one-line description
### Step 6: Update distill state ### Step 6: Update distill state
Write `~/dev/claude/projects/claude-foundations/best-practices/.distill-state.json`: Write `~/dev/claude/projects/best-practices/.distill-state.json`:
```json ```json
{ {