How artificialsenselabs/handbook-public works
1. This repository is a Markdown-only engineering handbook. It has no application runtime, package build, or production deployment. The “architecture” is a documentation system organized around content folders, templates, and validation scripts.
2. The core content layer is the topic taxonomy: angular/, nx/, css-scss/, tooling/, security/, debugging/, how-to/, snippets/, til/, prompts/, and principles/. Each folder is a distinct knowledge boundary with its own purpose, and the root README.md acts as the entry point and navigation map.
3. The repository distinguishes between topic docs and cross-cutting principles. Topic folders answer tool- or task-specific questions, while principles/ holds workspace-wide decision frameworks that apply across projects. This matters for diagramming because it separates “how-to knowledge” from “policy/architecture knowledge.”
4. The template subsystem lives in _templates/. It provides starting points for new notes, enforcing consistent structure across how-to, debugging, TIL, and prompt documents. New content is typically created by copying a template into the appropriate topic folder rather than generated by code.
5. The contribution workflow is editorial, not programmatic: authors add or update Markdown files, choose the right folder, follow filename conventions, and rely on editor search instead of a manual index. CONTRIBUTING.md defines the process and conventions for note creation and link hygiene.
6. The automation subsystem is in scripts/. These are repository-maintenance tools, not product features. They support tasks like bootstrapping the workspace, checking internal links, checking external links, and detecting repo-list drift. The scripts are the main operational glue between the handbook content and CI checks.
7. The CI/validation boundary is GitHub Actions under .github/workflows/. The workflows run link checks and repository drift checks, ensuring docs stay navigable and references remain valid. The repo is therefore validated primarily by static analysis of links and references, not by compilation or tests.
8. There is a strong public/private boundary in the content model. The handbook is public, while references to internal workspace repos are intentionally de-linked plain text marked as internal. This prevents leaking private repository URLs while still allowing the docs to describe workspace concepts.
9. The repository also contains a standards and conventions layer under tooling/, security/, and principles/. These sections document shared practices like GitHub token handling, conventional commits, semantic versioning, pnpm behavior, and theming/build-vs-buy decisions. In an architecture diagram, these are governance and operating-model inputs to the rest of the handbook.
10. The main data flow is simple: author writes Markdown → templates/conventions shape the note → scripts and GitHub Actions validate links and repo consistency → readers navigate via folder structure and search. There is no content rendering pipeline beyond Markdown display in GitHub and editor-based search.
11. The root README and folder READMEs function as the navigation and discovery layer. They give the repository its structure without maintaining a separate index, which keeps the system low-maintenance and avoids stale metadata.
12. Overall, this repo is best modeled as a documentation knowledge base with light automation: content folders as the primary domains, templates as scaffolding, scripts as maintenance utilities, and CI as integrity enforcement.
Main entry points: README.md README · _templates Templates · scripts Scripts · CONTRIBUTING.md Contributing
Components 22
Navigation
Entry points and editorial process
- README · Root navigation map for the handbook
README.md - Contributing · How to add notes and maintain links
CONTRIBUTING.md
Content taxonomy
Topic folders and cross-cutting handbook knowledge
- Angular · Angular-specific knowledge and patterns
angular/README.md - Nx · Nx workspace knowledge
nx/README.md - CSS/SCSS · Styling and stylesheet notes
css-scss/README.md - Debugging · Troubleshooting notes and gotchas
debugging/README.md - How-to · Task-oriented workflows and runbooks
how-to/README.md - Prompts · Reusable AI task prompts
prompts/README.md - Snippets · Small reusable command and config references
snippets/README.md - TIL · Short dated learnings and discoveries
til/README.md
Scaffolding
Templates and authoring conventions
- Templates · Starting points for common note types
_templates
Automation
Maintenance scripts and CI validation
- Scripts · Repository upkeep and drift checks
scripts - Workflows · GitHub Actions validation boundary
.github/workflows - Link check · Checks internal documentation links
scripts/check-links.py - External links · Checks outbound links
scripts/check-external-links.py - Drift check · Detects repository list drift
scripts/check-repo-list-drift.sh - Link CI · Runs internal link validation
.github/workflows/link-check.yml - External CI · Runs external link validation
.github/workflows/external-link-check.yml - Drift CI · Runs repo-list drift validation
.github/workflows/repo-list-drift.yml
Governance
Shared standards and operating principles
- Principles · Cross-cutting standards and policy guidance
principles/README.md - Tooling · Conventions for commits, semver, pnpm, and actions
tooling/README.md - Security · Workspace security practices and token handling
security/README.md
Connections 30
- README → Angular: routes to · Top-level navigation into a topic area
- README → Nx: routes to · Top-level navigation into a topic area
- README → CSS/SCSS: routes to · Top-level navigation into a topic area
- README → Debugging: routes to · Top-level navigation into a topic area
- README → How-to: routes to · Top-level navigation into a topic area
- README → Prompts: routes to · Top-level navigation into a topic area
- README → Snippets: routes to · Top-level navigation into a topic area
- README → TIL: routes to · Top-level navigation into a topic area
- README → Principles: routes to · Top-level navigation into cross-cutting guidance
- README → Tooling: routes to · Top-level navigation into standards
- README → Security: routes to · Top-level navigation into security guidance
- README → Contributing: points to · Editorial process and contribution conventions
- Contributing → Templates: uses · New notes follow shared templates
- Contributing → Scripts: relies on · Repository maintenance and link hygiene support the workflow
- Templates → How-to: scaffolds · Template for procedural notes
- Templates → Debugging: scaffolds · Template for troubleshooting notes
- Templates → TIL: scaffolds · Template for short learnings
- Templates → Prompts: scaffolds · Template for reusable prompts
- Principles → Tooling: informs · Shared decision frameworks shape repository conventions
- Principles → Security: informs · Workspace policy and token handling guidance
- Scripts → Link check: contains · Internal link validation tool
- Scripts → External links: contains · Outbound link validation tool
- Scripts → Drift check: contains · Repository drift detection tool
- Link check → Link CI: runs in · CI executes internal link checks
- External links → External CI: runs in · CI executes external link checks
- Drift check → Drift CI: runs in · CI executes repository drift checks
- Link CI → README: protects · Ensures navigation links remain valid
- External CI → README: protects · Ensures outbound references remain valid
- Drift CI → README: protects · Ensures repo-list references stay consistent
- Tooling → Templates: constrains · Conventions influence note structure and naming