mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Fiks 4 gaps i Mode B og auto-update
Fix 1: Mode B laes agent frontmatter description og foreslaer
praecis CLAUDE.md-tekst for manglende agenter
Fix 3: Mode B substituerer {PROJECT_NAME} og {SETUP_DATE} i
HEARTBEAT.md fra CLAUDE.md-overskrift eller git remote
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0be4b54de4
commit
f482a8f09e
1 changed files with 30 additions and 9 deletions
|
|
@ -426,9 +426,19 @@ Never touches `CLAUDE.md`, `projectmemory/`, `docs/`, or `~/.bc-mcp.config.json`
|
||||||
| `.github/.agents/munger.agent.md` | Fetch fresh from BCQuality, overwrite |
|
| `.github/.agents/munger.agent.md` | Fetch fresh from BCQuality, overwrite |
|
||||||
| `cspell.json` — words from template | Merge new words, keep project words |
|
| `cspell.json` — words from template | Merge new words, keep project words |
|
||||||
| `.mcp.json` — `al` entry | Add if `find-altool.ps1` now exists and entry is missing |
|
| `.mcp.json` — `al` entry | Add if `find-altool.ps1` now exists and entry is missing |
|
||||||
| `HEARTBEAT.md` | Create from template if missing, never overwrite |
|
| `HEARTBEAT.md` | Create from template if missing (substitute tokens), never overwrite |
|
||||||
| `docs/specs/`, `docs/decisions/`, `docs/cleanup/` | Create if missing, never overwrite content |
|
| `docs/specs/`, `docs/decisions/`, `docs/cleanup/` | Create if missing, never overwrite content |
|
||||||
|
|
||||||
|
### HEARTBEAT.md token substitution (Mode B)
|
||||||
|
|
||||||
|
When creating HEARTBEAT.md from template in Mode B:
|
||||||
|
|
||||||
|
1. Derive `{PROJECT_NAME}` — read the first `# ` heading from `CLAUDE.md`
|
||||||
|
(e.g. `# ProjectManagement — Claude Code Instructions` → `ProjectManagement`).
|
||||||
|
If CLAUDE.md has no heading, use the git remote repo name.
|
||||||
|
2. Set `{SETUP_DATE}` to today's ISO date (YYYY-MM-DD)
|
||||||
|
3. Substitute both tokens before writing the file
|
||||||
|
|
||||||
### What does NOT get updated
|
### What does NOT get updated
|
||||||
|
|
||||||
- `CLAUDE.md` — project-specific, managed per project
|
- `CLAUDE.md` — project-specific, managed per project
|
||||||
|
|
@ -439,14 +449,25 @@ Never touches `CLAUDE.md`, `projectmemory/`, `docs/`, or `~/.bc-mcp.config.json`
|
||||||
### After update — agent-synligheds-check
|
### After update — agent-synligheds-check
|
||||||
|
|
||||||
After updating agent files, compare `.github/.agents/*.agent.md` against CLAUDE.md:
|
After updating agent files, compare `.github/.agents/*.agent.md` against CLAUDE.md:
|
||||||
- For each agent file in the directory, check if its filename is referenced in CLAUDE.md
|
|
||||||
- If any are missing, report them:
|
1. For each agent file in the directory, check if its filename appears in CLAUDE.md
|
||||||
```
|
2. For each missing agent, read its `description:` field from the frontmatter
|
||||||
⚠️ Nye agenter installeret men ikke refereret i CLAUDE.md:
|
3. If any are missing, propose exact CLAUDE.md text and ask for confirmation:
|
||||||
- <agent-navn>.agent.md
|
|
||||||
Vil du have mig til at tilføje dem?
|
```
|
||||||
```
|
⚠️ Nye agenter installeret men ikke refereret i CLAUDE.md:
|
||||||
- Do not add them without the developer's confirmation
|
|
||||||
|
Foreslået tilføjelse til "On-demand agents"-sektionen:
|
||||||
|
|
||||||
|
- `.github/.agents/court.agent.md` - <description from frontmatter>
|
||||||
|
- `.github/.agents/lincoln.agent.md` - <description from frontmatter>
|
||||||
|
|
||||||
|
Vil du have mig til at tilføje dem til CLAUDE.md? (ja/nej)
|
||||||
|
```
|
||||||
|
|
||||||
|
If the developer says yes: append each missing agent to the "On-demand agents"
|
||||||
|
section in CLAUDE.md using the frontmatter description as the text.
|
||||||
|
Do not add without confirmation.
|
||||||
|
|
||||||
### After update — report and commit
|
### After update — report and commit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue