refactor: reorganize template write paths + add frontmatter + manifest

All skill templates now write artifacts to subdirectories under
$PROJECTS_DIR/$SLUG/ (reviews/, plans/, reports/). Adds YAML
frontmatter to markdown artifacts and manifest-append calls.

Templates updated:
- plan-eng-review: plans/ + reviews/
- plan-ceo-review: plans/ceo/ + reviews/
- plan-design-review: reviews/
- ship: reviews/
- design-review: reports/
- qa: reports/
- qa-only: reports/
- review/greptile-triage: uses gstack-slug instead of remote-slug

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-18 23:48:28 -07:00
parent 31f1e707a6
commit 4564cb18ed
8 changed files with 113 additions and 37 deletions

View File

@@ -493,11 +493,29 @@ Write the report to both local and project-scoped locations:
**Local:** `.gstack/qa-reports/qa-report-{domain}-{YYYY-MM-DD}.md`
**Project-scoped:** Write test outcome artifact for cross-session context:
{{ARTIFACT_SETUP}}
```bash
eval $(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)
mkdir -p ~/.gstack/projects/$SLUG
mkdir -p $PROJECTS_DIR/$SLUG/reports
FILE="$PROJECTS_DIR/$SLUG/reports/$BRANCH-test-outcome-$DATE.md"
[ -f "$FILE" ] && FILE="$PROJECTS_DIR/$SLUG/reports/$BRANCH-test-outcome-$DATE-$(date +%H%M).md"
```
Write to the file path resolved above. Include YAML frontmatter:
```yaml
---
type: test-outcome
branch: {branch}
date: {YYYY-MM-DD}
skill: qa
---
```
After writing, register in manifest:
```bash
~/.claude/skills/gstack/bin/gstack-manifest-append test-outcome "reports/$(basename "$FILE")" qa "$BRANCH"
```
Write to `~/.gstack/projects/{slug}/{user}-{branch}-test-outcome-{datetime}.md`
**Per-issue additions** (beyond standard report template):
- Fix Status: verified / best-effort / reverted / deferred