An opinionated, agent-first scaffolding monorepo for Google Antigravity. It houses the 5-tier governance archetypes under type/, links dynamically with the centralized machine agent-skills-vault without Git submodules, and enforces strict governance through AGENTS.md.
Each project archetype maintains its own dedicated template rules and starter assets in type/<tier>/:
| Tier | Directory | Governance Focus | Key Invariants |
|---|---|---|---|
| Personal | type/personal/ |
Rapid prototyping & private tools | Velocity-first, local test parity, exempt from artificial reproducer gates |
| Team / Hackathon | type/team/ |
Collaborative multi-author systems | Concurrency sanitizers (-race), 120s demo video script (DEMO_VIDEO_SCRIPT.md), non-blocking async |
| External OSS | type/oss/ |
Upstream contribution & PRs | Mandatory red-test reproducer gate (TestIssueXXXXX), maintainer taste mimicry, diff noise ceiling <= 5%, no closed PR reopening |
| Research | type/research/ |
Academic empirical papers | CORE A*/A rigor, 4-quadrant Threats to Validity, non-parametric stats (A12, Cliff's delta, Wilson CI, FDR), 3-tier replication runner (--dry-run, --sample, --full), {metric_originTech} placeholders |
| Author-OSS | type/author-oss/ |
Public author-maintained libraries | Full maintainer authority, SemVer releases, multi-OS CI matrix parity (Linux/macOS/Windows), canonical community assets |
Because archetypes reside together in type/:
- List Available Governance Tiers:
python .agent/scaffold.py --list
- Initialize a Project Type:
# Windows (PowerShell) .\.agent\setup.ps1 -Type <personal|team|oss|research|author-oss>
# POSIX Shell (Linux / macOS / DevContainers) ./.agent/setup.sh --type <personal|team|oss|research|author-oss>
- Easy Updates from Main:
When the base template or archetype rules are refined on
main, projects can pull updates cleanly from the main branch and re-run:python .agent/scaffold.py --type <mode> --update
- Workspace Initializer Mode Skip Gate:
- If the governance mode is already declared in
AGENTS.md(e.g.mode: personal),workspace-initializerskips prompting and immediately applies the tier's invariants. - If undeclared, the initializer prompts the user, awaits confirmation, and writes the choice to
AGENTS.md.
- If the governance mode is already declared in
Git submodules for agent-skills-vault are completely eliminated:
- Skills mount directly from the central machine vault (
agent-skills-vault) into.agents/skills/via NTFS directory junctions (Windows) or POSIX symlinks (Linux/macOS). - Dynamic agent paths (
.agents/skills/*,.agents/.skill-leases.json,.agents/.turn-cache.json,.agents/mode) remain registered in.git/info/exclude. AGENTS.mdis committed and tracked across all repositories.
AgenticTemplate/
├── type/
│ ├── personal/ # Personal app / rapid prototype rules & templates
│ ├── team/ # Team / Hackathon directives, demo script & race checks
│ ├── oss/ # Upstream OSS contributor rules, reproducer gates & PR template
│ ├── research/ # Academic research directives, 3-tier runner & stats engine
│ └── author-oss/ # Public library authoring, SemVer, CI matrix & community assets
├── .agent/
│ ├── hooks/
│ │ ├── pre-commit.ps1 # Dynamic skill detection from central vault (PowerShell)
│ │ └── pre-commit.sh # Dynamic skill detection from central vault (POSIX sh)
│ ├── scaffold.py # Archetype scaffolding & update orchestrator
│ ├── setup.ps1 # Workspace initialization & hook configuration (PowerShell)
│ ├── setup.sh # Workspace initialization & hook configuration (POSIX sh)
│ ├── wiki.ps1 # Quick CLI launcher for wiki-engine (PowerShell)
│ └── wiki.sh # Quick CLI launcher for wiki-engine (POSIX sh)
├── .agents/skills/ # Active Antigravity customization discovery root (dynamic junctions)
├── AGENTS.md # Workspace agent governance directives (tracked)
├── README.example.md # Scaffolding template README for downstream projects
├── README.md # System documentation for AgenticTemplate
├── rules.md # Quick reference rules
├── .gitattributes # Git normalization (LF line endings for cross-platform parity)
├── .gitignore # Root-anchored binary ignores & build artifacts
└── wiki/ # Bidirectional knowledge graph records
├── index.md # Root knowledge graph entrypoint
├── architecture.md # High-level architecture specification
└── adr/ # Architecture Decision Records
└── 001-initial-architecture.md
Run the automated setup script from PowerShell (Windows):
.\.agent\setup.ps1 -Type personalOr from a POSIX shell (Linux/macOS/DevContainers):
./.agent/setup.sh --type personalThe setup script will:
- Ensure the workspace is a valid Git repository and set the root directory.
- Locate the central
agent-skills-vaulton the machine (via standard paths orAGENT_SKILLS_VAULT_PATH). - Configure vault exclusions in
.git/info/excludeto keep Git working tree 100% clean. - Verify global skills in
~/.gemini/config/skills/. - Configure the Git
.git/hooks/pre-commithook to run synchronization on commit. - Apply the selected archetype rules from
type/<type>/and run initial skill synchronization.
| Command | Applied Governance |
|---|---|
.\.agent\setup.ps1 -Type personal |
Rapid prototyping, personal harness, zero gatekeeping |
.\.agent\setup.ps1 -Type team |
Race sanitizers, 120s demo video choreography (DEMO_VIDEO_SCRIPT.md) |
.\.agent\setup.ps1 -Type oss |
Upstream contributor rules, red-test reproducer gate, diff noise <= 5% |
.\.agent\setup.ps1 -Type research |
Academic paper package, 4-quadrant threats, 3-tier replication runner |
.\.agent\setup.ps1 -Type author-oss |
Full maintainer authority, SemVer releases, CI matrix, community assets |
Cross-platform scaffolding via Python:
python .agent/scaffold.py --type <tier>When scaffolding a new application from this template into a fresh repository:
- Scaffold Archetype: Run
.agent/setup.ps1 -Type <tier>orpython .agent/scaffold.py --type <tier>. - Replace Root README: Replace
README.mdusingREADME.example.mdas your starter specification, deleteREADME.example.md, and remove the template disclaimer block. - Populate Stack & Commit: Add your application code and stack manifests (
pyproject.toml,package.json,go.mod,Cargo.toml). The pre-commit hook automatically mounts matching domain skills from the local vault into.agents/skills/. If the machine lacks the vault, hooks cleanly no-op without blocking Git.
Antigravity operates with a two-tier skill model:
- Global Skills (
~/.gemini/config/skills/): Always available across all workspaces on the machine (code-review,doc-sync,error-discipline,git-release,incident-triaging,intent-discipline,repo-wiki,script-optimization,security-auditor,strategic-reconnaissance,test-discipline,workspace-initializer). These are never linked into.agents/skills/. - Workspace Domain Skills (
.agents/skills/): Language-, framework-, and stack-specific skills (e.g.,langs/go-systems,frameworks/fastapi,db/sql-redis,ops/docker) dynamically mounted into.agents/skills/from the central machine vault via NTFS junctions or POSIX symlinks based on active repository manifests.