chasebridgible/foundation/install-foundation-substrate
Claude Code and agent skill by chasebridgible/foundation
- community
Checking that the SKILL.md file is still in the repository.
Connect a target repository to the canonical Foundation software substrate. Use when Codex needs to set up the Foundation workspace model for a repo, create a local AGENTS.md adapter, verify the global Codex pointer, place target-owned specs correctly, configure GitHub Actions with a pinned Foundation checkout, or establish required spec checks.
Install
npx vskill@latest install chasebridgible/foundation/install-foundation-substrateSKILL.md
The same SKILL.md was published earlier as chasebridgible/foundation/install-foundation-substrate.
Connect Target Repo
Use this skill to connect a target repo to Foundation. The model is defined in docs/specs/foundation-workspace-model.html: one canonical Foundation repo, global Codex pointer, and small target-repo adapters.
Target Repo Setup
- Confirm the canonical Foundation path.
- Confirm global Codex instructions point to Foundation.
- Create or update the target repo
AGENTS.mdas a local adapter only:
- It may define local commands, paths, project constraints, and repo-specific exceptions.
- It must not duplicate or redefine shared Foundation rules.
- Use
templates/target-repo-AGENTS.mdas the starting shape.
- Keep project specs, project knowledge, tests, ADRs, and implementation paths in the target repo.
- Keep shared process, templates, skills, validators, and principles in Foundation.
- Install local HTML docs navigation for the target repo:
- Copy or pin
docs/generate-site-map.mjsanddocs/site-nav.jsfrom Foundation into the target repo. - The local
docs/site-nav.jsmust include the shared sidebar collapse control, includingdata-site-nav-toggle,substrate-site-nav-collapsed, and thesubstrate:site-nav-toggleevent. If Foundation updates this renderer, refresh the target repo copy or pin. - Generate the target repo's own
docs/site-map.js; it must reflect the target repo's folders, not Foundation's folders. - If the target repo has
package.json, add asite-mapscript that runsnode docs/generate-site-map.mjs. - Ensure durable HTML docs under
docs/load the localsite-map.jsand collapse-capablesite-nav.jsscripts. Cache-busting query strings are acceptable; the resolved files must still be target-local. - Preserve the target repo's spec registry as the semantic lookup for system specs, capability specs, job specs, technical specs, eval specs, paths, and coverage.
- Sync target package aliases from Foundation:
- If the target repo has
package.json, runnpm run foundation:target-scripts:sync -- --repo <target-repo>from Foundation. - Do not hand-maintain Foundation backfill aliases in the target repo. The sync command owns aliases for doctor, run-log checks, visible-business-graph check, and every durable backfill layer including Process / Action Map.
- Rerun
npm run foundation:doctor -- --repo <target-repo>after syncing; missing or stale target package aliases are a setup failure.
- Ensure target specs are graph-compatible:
- New target specs must use Foundation templates or
docs/specs/new-spec.mjssograph-metadatais present from creation. - Target
AGENTS.mdshould tell agents to runnpm run foundation:visible-business-graph:check -- --repo <target-repo>after spec graph changes. - Generated canvas artifacts remain derived outputs, not source of truth.
- Configure CI to check out a pinned Foundation revision, not an implicit local sibling path.
- Run
npm run foundation:doctor -- --repo <target-repo>from Foundation and resolve failures before handoff.
Target Repo Adapter
- Rewrite the target repo README for the target product or client repo.
- Create target-owned spec directories when the repo starts carrying product specs.
- Use target-owned spec IDs. Do not create target product specs under
foundation.*. - Record local test, build, development, active backfill report paths, and graph validation command in the target repo adapter.
- Route shared process improvements back to Foundation.
- Route product behavior, project knowledge, ADRs, tests, implementation paths, and generated business graph artifacts to the target repo.
Existing Repo Adoption
After the target repo is connected:
- Run
npm run foundation:doctor -- --repo <target-repo>from Foundation. - Use
skills/backfill-repo/SKILL.mdto inspect existing repo behavior and create draft job and technical specs. - Keep the active dated backfill report named in the target repo adapter while the backfill is in progress.
- Use a later eval-backfill workflow for eval specs and acceptance mapping.
GitHub Setup
- Push the target repo setup on a feature branch.
- Open a PR into
main. - Configure the workflow to check out a pinned Foundation revision.
- Run the target repo's local tests/builds and Foundation-backed spec validation.
- Protect
main. - Require the target repo's quality and spec validation checks.
- Use branch -> PR -> required checks pass -> merge for future spec and behavior changes.
Exit Criteria
- Codex can start in the target repo and discover Foundation through global Codex instructions.
- The target repo
AGENTS.mdis a short adapter, not a copy of Foundation rules. - The target README explains what the target repo is.
- Product specs and project facts live in the target repo.
- Durable HTML docs in the target repo render a left sidebar from the target repo's own folder tree, and the shared collapse control works on every included HTML page.
- The target repo spec registry remains separate from visual document navigation.
- Target specs are created with
graph-metadata, and the target adapter names the visible business graph check. - If the target repo has
package.json, Foundation-owned package aliases are current according tonpm run foundation:doctor -- --repo <target-repo>. - Shared process changes live in Foundation.
- Existing repo adoption routes to Backfill Specs after setup.
- CI checks out a pinned Foundation revision before running Foundation-backed validation.
npm run foundation:doctor -- --repo <target-repo>reports no failures.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/install-foundation-substrate/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chasebridgible/foundation/install-foundation-substrate)