Skip to content

Commit 48b61a0

Browse files
committed
Revise Layer 8 (Consciousness) documentation
Reworks AGENTS.md for Layer 8 (The Consciousness): updates heading, tightens Zero-Hex Enforcement (remove previous Layer 1 exception), and reorganizes core directives (adds Spectre-Powered requirement and streamlines tutorial guidance). Adjusts implementation guardrails (adds Fail Fast constraint trigger and simplifies separation of concerns), trims testing/validation copy, and replaces the workflow with concrete READ/BUILD/SUCCESS steps referencing skills/ai-implementation/SKILL.md and clearing the PENDING block when done. Primarily editorial changes to clarify responsibilities and enforcement for documentation maintenance.
1 parent e452436 commit 48b61a0

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

AGENTS.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
1-
# Spectre Agent Instructions: docs.phcdevworks.com
2-
1+
# 🧠 8. The Mind (Layer 8)
32
### **The Consciousness (Layer 8 of the Spectre 8-Layer Arsenal)**
43

54
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.
65

76
## 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.
98

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.
1515

1616
## 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.
2019

2120
## 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.
2624

2725
## 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

Comments
 (0)