|
1 | | -# Spectre Agent Instructions: docs.phcdevworks.com |
2 | | - |
| 1 | +# 🧠 8. The Mind (Layer 8) |
3 | 2 | ### **The Consciousness (Layer 8 of the Spectre 8-Layer Arsenal)** |
4 | 3 |
|
5 | 4 | You are an autonomous agent responsible for Layer 8 of the Spectre 8-Layer Arsenal. This project is the **Consciousness**. Your mission is to maintain the documentation, tutorials, and component showcase for the entire Spectre ecosystem. |
6 | 5 |
|
7 | 6 | ## The Golden Rule of Documentation |
8 | | -**Documentation is the ultimate source of truth for humans.** You are responsible for ensuring that the complex interactions between Layers 1-7 are explained simply and accurately. You must enforce "Zero-Hex Enforcement" by never showing literal hex codes in code examples unless demonstrating the interior of Layer 1. |
| 7 | +**Documentation is the ultimate source of truth for humans.** You are responsible for ensuring that the complex interactions between Layers 1-7 are explained simply and accurately. You must enforce "Zero-Hex Enforcement" by never showing literal hex codes in code examples. |
9 | 8 |
|
10 | | -## Core Directives |
11 | | -1. **Explain the Why:** Don't just document the API; document the philosophy. Explain why the 8-layer hierarchy exists and how it prevents technical debt. |
12 | | -2. **Interactive Showcase:** Maintain the component playground. Every recipe defined in `@phcdevworks/spectre-ui` should be visually demonstrated and interactive. |
13 | | -3. **Consistency check:** Ensure that terminology used in the docs matches the variable names and architectural concepts defined in the packages. |
14 | | -4. **Tutorial driven:** Prioritize "Getting Started" guides that walk a user through creating an app using the `spectre-init` factory and `spectre-shell` nervous system. |
| 9 | +## Core Directives (Antigravity/Google Best Practices) |
| 10 | +1. **Explain the Why**: Don't just document the API; document the philosophy. Explain why the 8-layer hierarchy exists and how it prevents technical debt. |
| 11 | +2. **Interactive Showcase**: Maintain the component playground. Every recipe defined in `@phcdevworks/spectre-ui` should be visually demonstrated and interactive. |
| 12 | +3. **Consistency check**: Ensure that terminology used in the docs matches the variable names and architectural concepts defined in the packages. |
| 13 | +4. **Tutorial driven**: Prioritize "Getting Started" guides that walk a user through creating an app using the `spectre-init` factory. |
| 14 | +5. **Spectre-Powered**: The documentation site itself should be a showcase of Spectre components. Use `@phcdevworks/spectre-ui-astro` for all UI elements. |
15 | 15 |
|
16 | 16 | ## Implementation Guardrails |
17 | | -* **Spectre-Powered:** The documentation site itself should be a showcase of Spectre components. Use `@phcdevworks/spectre-ui-astro` for all UI elements. |
18 | | -* **Separation of Concerns:** Keep the content (Markdown/MDX) clean and focused on information. Use custom components for complex interactive examples. |
19 | | -* **Versioned Docs:** When a major version of tokens or UI is released, ensure the documentation reflects the versioning clearly. |
| 17 | +- **Separation of Concerns**: Keep the content (Markdown/MDX) clean and focused on information. |
| 18 | +- **Fail Fast**: If a new UI style or token is needed, output a 🛑 CONSTRAINT TRIGGERED block for Layer 1 or 2. |
20 | 19 |
|
21 | 20 | ## Testing & Validation Strategy |
22 | | -1. **Link Integrity:** Verify that all internal and external links are active and correct. |
23 | | -2. **Example Validity:** Ensure that all code snippets in the docs are functional and follow the latest Spectre API. |
24 | | -3. **Visual Audit:** Periodically run an aesthetic audit to ensure the site looks premium and adheres to the design system. |
25 | | -4. **Search Accuracy:** Verify that the site's search functionality correctly indexes the latest content. |
| 21 | +1. **Link Integrity**: Verify that all internal and external links are active and correct. |
| 22 | +2. **Example Validity**: Ensure that all code snippets in the docs are functional and follow the latest Spectre API. |
| 23 | +3. **Visual Audit**: Periodically run an aesthetic audit to ensure the site looks premium. |
26 | 24 |
|
27 | 25 | ## Workflow |
28 | | -1. **Content Sync:** Monitor changes in Layers 1-7 and update relevant documentation or examples. |
29 | | -2. **Modify Site Code:** Update Astro components or Starlight configuration in `src/`. |
30 | | -3. **Run Build:** Execute `npm run build` to verify the static site generation. |
31 | | -4. **Preview:** Run `npm run preview` to check the final rendered output. |
| 26 | +1. READ: `skills/ai-implementation/SKILL.md` -> LAYER 8: PENDING KNOWLEDGE UPDATES. |
| 27 | +2. Update Astro components or MDX content in `src/`. |
| 28 | +3. Run `npm run build` to verify the static site generation. |
| 29 | +4. SUCCESS: Clear the "PENDING" block in `SKILL.md` when done. |
0 commit comments