بنقرة واحدة
check-workspace-consistency
Rigorously validate all files referencing workspace structure are in sync
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Rigorously validate all files referencing workspace structure are in sync
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
End-of-session procedure that captures learnings into memory topic files, verifies index consistency, updates current-state.md, and syncs changes to team-lib.
Send an on-demand manual pulse to the ClickUp Pulse channel and optionally register thread-to-task mappings.
Graduated to team-lib — see team-lib/skills/session-debrief/. This stub demonstrates the my-lib → team-lib graduation pattern.
Add aliases, functions, or env vars to ~/.bashrc with section-aware placement
Check and upgrade local workspace files against latest team-lib templates
Compose base + type-override templates with brand tokens to produce fully resolved branded templates. Deep merges base+override, resolves tokenRef dot-paths against brand-tokens.json, and applies brand preference fan-out.
| name | check-workspace-consistency |
| description | Rigorously validate all files referencing workspace structure are in sync |
| summary | Three-pass validation protocol ensuring all workspace files (templates, docs, registry) are mutually consistent. Run before releases or after structural changes. |
| version | 1.1.0 |
| created | "2026-01-23T00:00:00.000Z" |
| last_updated | "2026-01-23T00:00:00.000Z" |
| maintainer | pvragon |
Rigorously validate that ALL files referencing the workspace structure stay in sync.
[!CAUTION] Multi-Pass Required: Historical experience shows consistency issues are often missed on the first pass. This skill enforces THREE verification passes before declaring success.
Run this validation after any change to:
| File | What to Check |
|---|---|
_admin/setup_workspace.sh | ensure_dir calls match all directories |
_admin/validate.sh | check_dir calls match setup script |
context/indexed/workspace-reference.md | Section 5 directory map + section 4.x descriptions |
_admin/GETTING_STARTED.md | Folder references, setup instructions |
README.md | Directory structure diagram |
| File | What to Check |
|---|---|
_admin/workspace-manifest.yaml | key_subdirs sections match actual structure |
registry/workspace.yaml | Path references |
registry/skills.yaml | Skill paths |
registry/directives.yaml | Directive paths |
registry/personas.yaml | Persona paths |
registry/context-packs.yaml | Context paths |
| File | What to Check |
|---|---|
_admin/index.md | Subdirectory descriptions |
context/index.md | Subdirectory descriptions |
context/global/index.md | Contents list |
context/indexed/index.md | Contents list |
directives/index.md | Contents list |
executions/index.md | Contents list |
harnesses/index.md | Contents list |
logs/index.md | Contents list |
personas/index.md | Contents list |
registry/index.md | Contents list |
skills/index.md | Contents list |
| File | What to Check |
|---|---|
directives/team-library-governance.md | Path references |
directives/workspace-validation.md | Validation instructions |
context/global/template-agent-*.md | Path references in templates |
_admin/tests/test_setup_workspace.sh | Test assertions match setup |
[!IMPORTANT] You MUST complete all three passes. Do not skip ahead.
Run these commands and capture output:
# 1. Directories from setup script
grep -oP 'ensure_dir "\K[^"]+' ~/ai-workspace/team-lib/_admin/setup_workspace.sh | \
sed 's|\${WORKSPACE_ROOT}/||' | sort -u > /tmp/setup_dirs.txt
# 2. Directories from validate script
grep -oP 'check_dir "\K[^"]+' ~/ai-workspace/team-lib/_admin/validate.sh | \
sort -u > /tmp/validate_dirs.txt
# 3. Compare for discrepancies
echo "=== Missing from validate.sh ===" && comm -23 /tmp/setup_dirs.txt /tmp/validate_dirs.txt
echo "=== Orphaned in validate.sh ===" && comm -13 /tmp/setup_dirs.txt /tmp/validate_dirs.txt
Fix any discrepancies before proceeding.
Open and manually inspect each Tier 1 file:
workspace-reference.md section 5 matches setup_dirs.txtworkspace-reference.md section 4.x descriptions cover all directoriesGETTING_STARTED.md folder references are currentREADME.md structure diagram is currentFix any discrepancies before proceeding.
Search for any file referencing specific paths:
# Check for hardcoded paths that might be stale
grep -r "my-lib/" ~/ai-workspace/team-lib --include="*.md" --include="*.yaml" | \
grep -v ".git" | grep -v "SKILL.md"
Review each hit for accuracy. Check Tier 2-4 files for:
After all three passes, run:
bash ~/ai-workspace/team-lib/_admin/validate.sh
Only declare success if:
After ANY structural change, confirm:
setup_workspace.sh updatedvalidate.sh updatedworkspace-reference.md section 5 updatedworkspace-reference.md section 4.x updated (if adding to a layer)workspace-manifest.yaml updated (if new subdirectory)index.md updatedREADME.md updated (if structure diagram exists)GETTING_STARTED.md reviewedvalidate.sh passes