# skul - Doramagic AI Context Pack

> Positioning: a pre-install experience and judgment asset. It helps the host AI get off to a good start, but it does not mean the project has already been installed, run, or validated.

## Sufficiency Principle

- **Sufficiency over compression**: The AI Context Pack should be sufficient for the host AI to understand the project's value, capability boundaries, entrypoints, risks, and evidence sources before starting work; it may be layered, but it does not aim for the shortest possible summary.
- **Compression policy**: Compress only noise and duplication, never context that affects judgment or the quality of the work.

## How the Host AI Should Use This

You are reading the AI Context Pack that Doramagic compiled for skul. Treat it as pre-work context: help the user understand who it fits, what it can do, how to start, what must be verified after install, and where the risks are. Do not claim that you have already installed, run, or executed the target project.

## Claim Consumption Rules

- **Fact source**: Repo Evidence + Claim/Evidence Graph; the Human Wiki only supplies salience, terminology, and narrative structure.
- **Minimum status for a fact**: `supported`
- `supported`: May be used as a project fact, but the answer must cite the claim_id and evidence path.
- `weak`: Usable only as a low-confidence lead; the user must be asked to keep verifying.
- `inferred`: Usable only for risk notes or open questions; must not be packaged as a project fact.
- `unverified`: Must not be used as fact; state clearly that evidence is insufficient.
- `contradicted`: Must show the conflicting sources and must not force a single version on the user's behalf.

## Who It Fits Best

- **Developers already using host AIs such as Claude/Codex/Cursor/Gemini**: The README or plugin config mentions multiple host AIs. Evidence: `README.md` Claim: `clm_0002` supported 0.86

## What It Can Do

- **Command-Line Startup or Install Flow** (Verify after install): The project documentation contains runnable commands; real use requires running them in a local or host environment. Evidence: `README.md` Claim: `clm_0001` supported 0.86

## How to Start

- `npm install --global @solaqua/skul` Evidence: `README.md` Claim: `clm_0003` supported 0.86
- `git clone https://github.com/sjquant/skul` Evidence: `README.md` Claim: `clm_0004` supported 0.86

## Continue-or-Stop Decision Card

- **Current recommendation**: Sandbox trial only
- **Why**: The project has signals of install commands, host configuration, or local writes; do not go straight into your primary environment—trial it in isolation first.

### 30-Second Read

- **What to do now**: Sandbox trial only
- **Minimum safe next step**: Run Prompt Preview first; if you still want to install, trial only in an isolated environment
- **Do not trust yet**: Real output quality cannot be trusted before install.
- **Continuing will touch**: Command execution, Host AI configuration, Local environment or project files

### What You Can Trust Now

- **Target-audience signal: Developers already using host AIs such as Claude/Codex/Cursor/Gemini** (supported): Backed by a supported claim or project evidence, but that still is not the same as real install results. Evidence: `README.md` Claim: `clm_0002` supported 0.86
- **Capability exists: Command-Line Startup or Install Flow** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `README.md` Claim: `clm_0001` supported 0.86
- **There are Quick Start / install-command signals** (supported): You can trust that the docs mention a startup or install entrypoint; do not run it directly in your primary environment because of that. Evidence: `README.md` Claim: `clm_0003` supported 0.86

### What You Cannot Trust Yet

- **Real output quality cannot be trusted before install.** (unverified): Prompt Preview can only show how it guides you; it cannot prove result quality in the real project.
- **Host AI version compatibility cannot be trusted before install.** (unverified): Host loading rules and version differences across Claude, Cursor, Codex, Gemini, and others must be verified in a real environment.
- **That it will not pollute your existing host AI's behavior cannot be trusted directly.** (inferred): Skill, plugin, and AGENTS/CLAUDE/GEMINI instructions may change the host AI's default behavior. Evidence: `CLAUDE.md`
- **Safe rollback cannot be assumed by default.** (unverified): Unless the project clearly provides uninstall and recovery instructions, verify in an isolated environment first.
- **After a real install, is it compatible with the user's current host AI version?** (unverified): Compatibility can only be verified in the actual host environment.
- **Does the project's output quality meet the user's specific task?** (unverified): The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **Do the install commands require network access, permissions, or global writes?** (unverified): This affects install risk in both enterprise and personal environments. Evidence: `README.md`

### What Continuing Will Touch

- **Command execution**: Package managers, network downloads, the local plugin directory, project config, or the user's home directory. Why: Running the very first command can already change your environment; decide whether it is worth running first. Evidence: `README.md`
- **Host AI configuration**: The plugin, Skill, or rule-loading config of hosts like Claude/Codex/Cursor/Gemini/OpenCode. Why: Host configuration changes how the AI works afterward and may conflict with the user's existing rules. Evidence: `CLAUDE.md`
- **Local environment or project files**: Install results, plugin caches, project config, or local dependency directories. Why: The write scope and rollback path cannot be proven before install and need isolated verification. Evidence: `README.md`
- **Host AI context**: The AI Context Pack, Prompt Preview, Skill routing, risk rules, and project facts. Why: Importing context affects the host AI's later judgment, so avoid packaging unverified items as facts.

### Minimum Safe Next Steps

- **Run Prompt Preview first**: Use a pre-install interactive trial to judge whether the way of working fits; it needs no authorization or environment change. (applies when: Applies to any project, especially when output quality is unknown.)
- **Trial-install only in an isolated directory or a test account**: Avoid letting install commands pollute your primary host AI, real projects, or home directory. (applies when: When there are signals of command execution, plugin config, or local writes.)
- **Back up your host AI configuration first**: Skill, plugin, and rule files may change the default behavior of Claude/Cursor/Codex. (applies when: When there is a plugin manifest, a Skill, or a host rule entrypoint.)
- **After install, verify just one minimal task**: Verify loading, compatibility, output quality, and rollback first, then decide whether to use it deeply. (applies when: When moving from a trial into a real workflow.)

### Exit Plan

- **Preserve the pre-install state**: Record the original host config and project state so you can later judge whether it is recoverable.
- **Be ready to remove the host plugin / Skill / rule entrypoint**: If behavior is off after the trial install, you can restore the host AI to its pre-trial state.
- **Record the install commands and written paths**: Without clear uninstall instructions, you at least need to know which directories or configs to clean up manually.
- **If there is no rollback path, do not enter your primary environment**: No rollback is a blocker before continuing; do not proceed on trust or luck.

## What Can Only Be Previewed

- Explain who the project fits and what it can do
- Demonstrate a typical conversation flow based on project docs
- Help the user decide whether it is worth installing or researching further

## What Must Be Verified After Install

- Actually installing the Skill, plugin, or CLI
- Running scripts, modifying local files, or accessing external services
- Verifying real output quality, performance, and compatibility

## Boundary & Risk Decision Card

- **Mistaking the pre-install preview for a real run**: The user may overestimate how much configuration, permission, and compatibility verification the project has already done. Mitigation: Clearly separate prompt_preview_can_do from runtime_required. Claim: `clm_0005` inferred 0.45
- **Command execution will modify the local environment**: Install commands may write to the user's home directory, the host plugin directory, or project configuration. Mitigation: Run in an isolated environment or a test account first. Evidence: `README.md` Claim: `clm_0006` supported 0.86
- **To confirm**: After a real install, is it compatible with the user's current host AI version?. Why: Compatibility can only be verified in the actual host environment.
- **To confirm**: Does the project's output quality meet the user's specific task?. Why: The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **To confirm**: Do the install commands require network access, permissions, or global writes?. Why: This affects install risk in both enterprise and personal environments.

## Pre-Work Working Context

### Loading Order

- First read how_to_use.host_ai_instruction to establish the boundaries of this pre-install judgment asset.
- Read claim_graph_summary to confirm facts come from the Claim/Evidence Graph, not the Human Wiki narrative.
- Then read intended_users, capabilities, and quick_start_candidates to judge whether the user is a match.
- When you need to carry out a concrete task, check role_skill_index first, then evidence_index.
- For real install, file modification, network access, performance, or compatibility questions, turn to risk_card and boundaries.runtime_required.

### Task Routes

- **Command-Line Startup or Install Flow**: State that this is an after-install capability first, then give a pre-install checklist. Boundary: Must be verified after a real install or run. Evidence: `README.md` Claim: `clm_0001` supported 0.86

### Context Scale

- Total files: 91
- Important-file coverage: 40/91
- Evidence index entries: 67
- Role / Skill entries: 4

### Handling Insufficient Evidence

- **missing_evidence**: State that evidence is insufficient and ask the user for the target file, a README section, or after-install verification records; do not fill in facts.
- **out_of_scope_request**: State that the task is beyond the current AI Context Pack's evidence scope and suggest the user check the Human Manual or verify after a real install.
- **runtime_request**: Provide a pre-install checklist and command sources, but do not run commands for the user or claim they have been run.
- **source_conflict**: Show the conflicting sources side by side, mark them as unverified, and do not force a single version.

## Prompt Recipes

### Fit assessment

- Goal: Judge whether this project fits the user's current task.
- Expected output: A fit conclusion, key reasons, evidence citations, what can be previewed before install, what must be verified after install, and a next-step recommendation.

```text
Based on the AI Context Pack for skul, ask me 3 necessary questions first, then judge whether it fits my task. The answer must cover: who it fits, what it can do, what it cannot do, whether it is worth installing, and where the evidence comes from. Every project fact must cite evidence_refs, source_paths, or a claim_id.
```

### Pre-install experience

- Goal: Let the user feel the core workflow before installing, while avoiding packaging the preview as real capability or a marketing promise.
- Expected output: An experience script with boundary labels, an after-install verification checklist, and a cautious recommendation; with no real-run promises or strong marketing language.

```text
Treat skul as a pre-install experience asset, not an already-installed tool or a real runtime environment.

Output exactly four parts:
1. Ask me 3 necessary questions first.
2. Give an "experience script": use the three labels [Previewable before install], [Must verify after install], and [Insufficient evidence] to show how it might guide the workflow.
3. Give an after-install verification checklist: list which capabilities can only be confirmed after a real install, real host loading, and a real project run.
4. Give a cautious recommendation: only "worth researching/trialing further", "add information before deciding", or "not recommended to continue"; do not endorse the project.

Hard boundaries:
- Do not claim you have installed, run, executed tests, modified files, or produced real results.
- Do not write promise-like phrasing such as "auto-adapts", "guarantees passing", "perfect fit", or "strongly recommend installing".
- If you describe how it works after install, you must use a conditional such as "if installed successfully and the host loads the Skill correctly, it might...".
- The experience script may only be written as "example lines / hypothetical flow": use "might ask / might suggest / might show", not "has written, has generated, has passed, is running, is generating".
- Prompt Preview does not hand out install commands; if the user is ready to trial, only prompt them to read Quick Start and the Risk Card first and to verify in an isolated environment.
- Every project fact must come from a supported claim, evidence_refs, or source_paths; inferred/unverified items can only be risks or open questions.

```

### Role / Skill selection

- Goal: Pick the best-matching asset from the project's roles or Skills.
- Expected output: A list of candidate roles or Skills, each with an applicable scenario, evidence paths, risk boundary, and whether after-install verification is needed.

```text
Read role_skill_index and recommend 3-5 of the most relevant roles or Skills for my target task. For each recommendation, state the applicable scenario, likely output, risk boundary, and evidence_refs.
```

### Risk pre-check

- Goal: Identify environment, permission, rule-conflict, and quality risks before installing or adopting.
- Expected output: A checklist of environment, permission, dependency, license, host-conflict, quality risk, and unknown items.

```text
Based on risk_card, boundaries, and quick_start_candidates, give me a pre-install risk pre-check list. Do not run commands for me; only explain what I should check, why, and what impact a failure would have.
```

### Host AI kickoff instruction

- Goal: Turn the project context into a host AI instruction for the start of a conversation.
- Expected output: A pre-work instruction with clear boundaries and clear evidence citations, suitable to copy to a host AI.

```text
Based on the AI Context Pack for skul, generate a pre-work instruction I can paste to my host AI. This instruction must obey not_runtime=true and must not claim the project has been installed, run, or produced real results.
```

## Role / Skill Index

- Indexed 4 role / Skill / project-doc entries.

- **Overview** (project_doc): Skul is a TypeScript CLI for managing project-scoped AI configuration bundles across multiple tools Claude Code, Cursor, Codex, OpenCode . It handles bundle discovery, materialization, registry tracking, stealth mode, and cross-tool translation. Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `CLAUDE.md`
- **Skul — AI Configuration Bundle Manager for AI Coding Tools** (project_doc): Skul — AI Configuration Bundle Manager for AI Coding Tools Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `README.md`
- **skul website** (project_doc): This app hosts the public documentation site for skul using Docusaurus. Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `website/README.md`
- **Skul — Advanced Usage** (project_doc): This guide covers the commands and flags that aren't part of the day-to-day workflow. For first-touch usage add , list , status , remove , apply see the README ../README.md . Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `docs/advanced.md`

## Evidence Index

- Indexed 67 evidence entries.

- **Package** (package_manifest): { "name": "@solaqua/skul", "version": "0.1.4", "description": "AI configuration layer manager for project-scoped bundles project setup only ", "homepage": "https://sjquant.github.io/skul/", "bugs": { "url": "https://github.com/sjquant/skul/issues" }, "repository": { "type": "git", "url": "git+https://github.com/sjquant/skul.git" }, "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "skul": "bin/skul.js" }, "publishConfig": { "access": "public" }, "files": "bin", "dist", "README.md", "LICENSE" , "scripts": { "build": "pnpm run clean && tsc -p tsconfig.build.json", "clean": "rm -rf dist", "docs:build": "pnpm install --dir website --frozen-lockfile && pnpm --dir website build", "doc… Evidence: `package.json`
- **Package** (package_manifest): { "name": "skul-docs", "version": "0.0.0", "private": true, "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", "clear": "docusaurus clear", "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", "typecheck": "tsc" }, "dependencies": { "@docusaurus/core": "3.10.0", "@docusaurus/faster": "3.10.0", "@docusaurus/preset-classic": "3.10.0", "@docusaurus/theme-common": "3.10.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.1", "prism-react-renderer": "^2.4.1", "react": "^19.1.0", "react-dom": "^19.1.0" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.10.0", "@d… Evidence: `website/package.json`
- **Overview** (documentation): Skul is a TypeScript CLI for managing project-scoped AI configuration bundles across multiple tools Claude Code, Cursor, Codex, OpenCode . It handles bundle discovery, materialization, registry tracking, stealth mode, and cross-tool translation. Evidence: `CLAUDE.md`
- **Skul — AI Configuration Bundle Manager for AI Coding Tools** (documentation): Skul — AI Configuration Bundle Manager for AI Coding Tools Evidence: `README.md`
- **skul website** (documentation): This app hosts the public documentation site for skul using Docusaurus. Evidence: `website/README.md`
- **License** (source_file): Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. Evidence: `LICENSE`
- **Skul — Advanced Usage** (documentation): This guide covers the commands and flags that aren't part of the day-to-day workflow. For first-touch usage add , list , status , remove , apply see the README ../README.md . Evidence: `docs/advanced.md`
- **Bundle Discovery** (source_file): import fs from "node:fs"; import path from "node:path"; ⋮---- import { type BundleManifest, inferBundleManifest, MANIFEST FILE NAME, parseBundleManifest, resolveCachedBundleLayout, } from "./bundle-manifest"; import { safeReaddirSync } from "./fs-utils"; ⋮---- export interface CachedBundle { source: string; bundle: string; manifestFile: string; manifest: BundleManifest; } ⋮---- export function detectSourceProtocol input: string : "https" "ssh" ⋮---- export function normalizeBundleSource input: string : string ⋮---- / Lists every bundle currently discoverable in the local cache. / ⋮---- export function findCachedBundle options: { libraryDir: string; bundle: string; source?: string; } : Cache… Evidence: `src/bundle-discovery.ts`
- **Bundle Fetch** (source_file): import { execFileSync } from "node:child process"; import fs from "node:fs"; import path from "node:path"; import { Readable } from "node:stream"; import { pipeline } from "node:stream/promises"; ⋮---- import { escapeRegExp } from "./fs-utils"; ⋮---- export interface FetchRemoteSourceOptions { source: string; libraryDir: string; protocol?: "https" "ssh"; ref?: string; } ⋮---- export interface FetchRemoteSourceResult { cloned: boolean; targetDir: string; } ⋮---- export interface CachedSourceRevision { cached: boolean; targetDir: string; currentCommit?: string; currentRef?: string; remoteUrl?: string; } ⋮---- export interface RemoteSourceStatus extends CachedSourceRevision { remoteUrl: string… Evidence: `src/bundle-fetch.ts`
- **Bundle Item Refs** (source_file): import fs from "node:fs"; import path from "node:path"; ⋮---- import { type CachedBundle, detectSourceProtocol, findCachedBundle, listCachedBundles, normalizeBundleSource, } from "./bundle-discovery"; import { fetchRemoteSource, updateCachedRemoteSource } from "./bundle-fetch"; import { type BundleItemSelector, normalizeBundleItemSelector, stripKnownBundleItemExtension, } from "./bundle-items"; import type { BundleManifest } from "./bundle-manifest"; import type { ToolName, ToolTargetName } from "./tool-mapping"; ⋮---- type DirectoryTargetName = typeof DIRECTORY TARGET NAMES number ; type BundleItemRefTarget = DirectoryTargetName typeof ROOT INSTRUCTION SELECTOR; ⋮---- export interface Bund… Evidence: `src/bundle-item-refs.ts`
- **Bundle Items** (source_file): import fs from "node:fs"; import path from "node:path"; import { listBundleItemRefSelectors } from "./bundle-item-refs"; import type { BundleManifest } from "./bundle-manifest"; import { getToolDefinition, type ToolName, type ToolTargetName, } from "./tool-mapping"; ⋮---- export type BundleItemSelector = string; ⋮---- export function normalizeBundleItemSelector selector: string, : BundleItemSelector ⋮---- function isDirectoryTargetName value: string undefined, : value is ToolTargetName ⋮---- function normalizeBundleItemName value: string undefined, originalSelector: string, : string ⋮---- function stripKnownItemExtension value: string : string ⋮---- / Normalizes and deduplicates bundle item… Evidence: `src/bundle-items.ts`
- **Bundle Manifest** (source_file): import fs from "node:fs"; import path from "node:path"; ⋮---- import { listToolDefinitions, type ToolDefinition, type ToolName, type ToolTargetName, } from "./tool-mapping"; ⋮---- export interface BundleManifestTarget { path: string; } ⋮---- export interface BundleManifest { name?: string; tools: Partial ; } ⋮---- export interface CachedBundleLayout { sourceSegments: string ; sourceDir: string; bundleDir: string; manifestFile: string; resolveBundlePath ...segments: string : string; } ⋮---- resolveBundlePath ...segments: string : string; ⋮---- type UnknownRecord = Record ; ⋮---- export function parseBundleManifest input: unknown : BundleManifest ⋮---- / Infers a bundle manifest from canonica… Evidence: `src/bundle-manifest.ts`
- **Bundle Materialization** (source_file): import fs from "node:fs"; import path from "node:path"; import type { ResolvedBundleItemRef } from "./bundle-item-refs"; import { type BundleItemSelector, isDirectoryItemSelected, isRootInstructionItemSelected, stripKnownBundleItemExtension, } from "./bundle-items"; import type { BundleManifest } from "./bundle-manifest"; import { toTranslationToolName, translateAgent, translateCommand, translateRootInstruction, translateSkill, } from "./bundle-translation"; import type { FileConflictResolution } from "./cli"; import { pathDepth } from "./fs-utils"; import { collectComposedRootInstructionContents } from "./root-instruction-content"; import { composeRootInstructionContent, wrapRootInstructio… Evidence: `src/bundle-materialization.ts`
- **Bundle Translation** (source_file): import { escapeRegExp } from "./fs-utils"; import { getToolDefinition, type ToolName, type ToolTargetName, } from "./tool-mapping"; ⋮---- type ScalarValue = string boolean; type MetadataValue = ScalarValue MetadataMap string ; ⋮---- interface MetadataMap { key: string : MetadataValue; } ⋮---- type SkillTool = "claude" "cursor" "codex" "opencode" "copilot" "kiro" "antigravity"; type CommandTool = "claude" "cursor" "opencode" "antigravity"; type AgentTool = "claude" "cursor" "codex" "opencode" "copilot" "kiro"; type RootInstructionTool = "claude" "cursor" "codex" "opencode" "copilot" "kiro" "antigravity"; ⋮---- interface MarkdownDocument { metadata: MetadataMap; body: string; } ⋮---- interfac… Evidence: `src/bundle-translation.ts`
- **Cli Parser.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-parser.test.ts`
- **Cli Run Apply Update.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-apply-update.test.ts`
- **Cli Run Basic.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-basic.test.ts`
- **Cli Run Items.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-items.test.ts`
- **Cli** (source_file): import { Command, CommanderError } from "commander"; import { detectSourceProtocol, normalizeBundleSource, } from "./bundle-discovery"; import { type BundleItemSelector, normalizeBundleItemSelector, } from "./bundle-items"; import { listToolDefinitions, type ToolName } from "./tool-mapping"; import { getPackageVersion } from "./version"; ⋮---- export type CommandName = "add" "list" "status" "check" "update" "shadow" "sync" "reset" "remove" "apply"; ⋮---- export type CliParseResult = { kind: "help"; command?: CommandName } { kind: "version" } { kind: "command"; command: "list"; options: { json: boolean; source?: string }; } { kind: "command"; command: "status"; options: { json: boolean; glob… Evidence: `src/cli.ts`
- **Fs Utils** (source_file): import fs from "node:fs"; ⋮---- export function safeReaddirSync directory: string : fs.Dirent ⋮---- export function pathDepth value: string : number ⋮---- export function escapeRegExp value: string : string Evidence: `src/fs-utils.ts`
- **Git Index** (source_file): import { execFileSync } from "node:child process"; import path from "node:path"; ⋮---- export interface GitIndexStageEntry { mode: string; objectId: string; stage: number; path: string; } ⋮---- export interface GitHeadBlob { objectId: string; content: string; } ⋮---- export type RootInstructionShadowSafetyIssue = "unmerged" "missing-head" "staged-changes" "unstaged-changes" "incompatible-index-flags"; ⋮---- export interface RootInstructionShadowSafetyInspection { tracked: boolean; stageEntries: GitIndexStageEntry ; headBlob: GitHeadBlob null; indexFlags: string ; issues: RootInstructionShadowSafetyIssue ; } ⋮---- export function isTrackedGitPath options: { repoRoot: string; filePath: string… Evidence: `src/git-index.ts`
- **Index** (source_file): import { execFileSync } from "node:child process"; import { createHash } from "node:crypto"; import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { createColors, isColorSupported } from "picocolors"; ⋮---- import { type CachedBundle, detectSourceProtocol, findCachedBundle, listCachedBundles, } from "./bundle-discovery"; import { type CachedSourceRevision, clearAndRefetchCachedRemoteSource, type FetchRemoteSourceOptions, fetchRemoteSource, inspectRemoteSource, type RemoteSourceStatus, readCachedSourceRevision, removeCachedRemoteSource, restoreCachedRemoteSourceRevision, updateCachedRemoteSource, } from "./bundle-fetch"; import { BUNDLE ITEM REFS FILE… Evidence: `src/index.ts`
- **Root Instruction Content** (source_file): import fs from "node:fs"; import path from "node:path"; import type { ResolvedBundleItemRef } from "./bundle-item-refs"; import { type BundleItemSelector, isRootInstructionItemSelected, } from "./bundle-items"; import type { BundleManifest } from "./bundle-manifest"; import { toTranslationToolName, translateRootInstruction, } from "./bundle-translation"; import { composeRootInstructionContent } from "./root-instruction-render"; import type { ToolName } from "./tool-mapping"; ⋮---- function collectRootInstructionContents options: { bundleDir: string; manifest: BundleManifest; toolName: ToolName; resolvedBundleItemRefs?: ReadonlyMap ; } : Record ⋮---- export function collectComposedRootInstru… Evidence: `src/root-instruction-content.ts`
- **Root Instruction Render** (source_file): import { createHash } from "node:crypto"; ⋮---- import { listGlobalToolDefinitions, listToolDefinitions, type ToolName, } from "./tool-mapping"; ⋮---- export function composeRootInstructionContent parts: Array , : string ⋮---- export interface RenderTrackedRootInstructionShadowOptions { baseContent?: string; overlayContent: string; bundleName: string; toolName: ToolName; strategy: "append" "prepend" "replace"; allowReplace?: boolean; } ⋮---- export interface RenderTrackedRootInstructionShadowResult { overlay: string; rendered: string; overlayFingerprint: string; renderedFingerprint: string; } ⋮---- export function renderTrackedRootInstructionShadow options: RenderTrackedRootInstructionShado… Evidence: `src/root-instruction-render.ts`
- **Root Instruction State** (source_file): import { createHash } from "node:crypto"; import fs from "node:fs"; import path from "node:path"; ⋮---- import type { CachedBundle } from "./bundle-discovery"; import type { ResolvedBundleItemRef } from "./bundle-item-refs"; import type { DesiredBundleEntry, MaterializedBundleState, MaterializedState, } from "./registry"; import { collectComposedRootInstructionContents } from "./root-instruction-content"; import { composeRootInstructionContent, isRootInstructionPath, wrapRootInstructionBundleContent, } from "./root-instruction-render"; import type { ToolName } from "./tool-mapping"; import { globalCapableToolNames } from "./tool-mapping"; ⋮---- export function captureRootInstructionBaseCont… Evidence: `src/root-instruction-state.ts`
- **State Layout** (source_file): import path from "node:path"; ⋮---- export interface GlobalStateLayout { rootDir: string; registryFile: string; libraryDir: string; resolveLibraryPath ...segments: string : string; } ⋮---- resolveLibraryPath ...segments: string : string; ⋮---- export interface ResolveGlobalStateLayoutOptions { homeDir: string; } ⋮---- export function resolveGlobalStateLayout options: ResolveGlobalStateLayoutOptions, : GlobalStateLayout Evidence: `src/state-layout.ts`
- **Tool Mapping** (source_file): import path from "node:path"; ⋮---- export type ToolName = "claude-code" "cursor" "opencode" "codex" "copilot" "kiro" "antigravity"; export type ToolTargetName = "skills" "commands" "agents" "root instruction"; export type ToolTargetEntryKind = "directory" "file"; ⋮---- export interface ToolTargetDefinition { path: string; kind: ToolTargetEntryKind; } ⋮---- export interface ToolDefinition { name: ToolName; targets: Partial ; } ⋮---- export interface ToolMaterializationLayout { remapRepoRelPath toolName: string, repoRelPath: string : string; resolveToolTargetPath toolName: string, targetName: ToolTargetName, rootDir: string, : string null; } ⋮---- remapRepoRelPath toolName: string, repoRelPa… Evidence: `src/tool-mapping.ts`
- **Biome** (structured_config): { "$schema": "https://biomejs.dev/schemas/2.4.15/schema.json", "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, "files": { "ignoreUnknown": false }, "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2 }, "linter": { "enabled": true, "rules": { "recommended": true } }, "javascript": { "formatter": { "quoteStyle": "double" } }, "assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } } } Evidence: `biome.json`
- **Tsconfig.Build** (structured_config): { "extends": "./tsconfig.json", "exclude": "src/ / .test.ts", "src/ / .integration.test.ts", "src/utils/testing.ts" } Evidence: `tsconfig.build.json`
- **Tsconfig** (structured_config): { "compilerOptions": { "target": "ES2022", "module": "commonjs", "moduleResolution": "node", "lib": "ES2022" , "strict": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "skipLibCheck": true, "declaration": true, "sourceMap": true, "rootDir": "src", "outDir": "dist" }, "include": "src/ / .ts" } Evidence: `tsconfig.json`
- **Tsconfig** (structured_config): { "extends": "@docusaurus/tsconfig", "compilerOptions": { "baseUrl": "." }, "exclude": "build", ".docusaurus", "node modules" } Evidence: `website/tsconfig.json`
- **OS** (source_file): Node node modules/ dist/ .log website/.docusaurus/ website/build/ Evidence: `.gitignore`
- **Prek** (source_file): repos.hooks id = "biome" name = "Biome lint + format " language = "system" entry = "pnpm exec biome check --write --no-errors-on-unmatched" types or = "ts", "tsx", "javascript", "jsx" Evidence: `prek.toml`
- **Bundle Auto Detection.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { inferBundleManifest } from "./bundle-manifest"; import { materializeBundle } from "./bundle-materialization"; import type { ToolName } from "./tool-mapping"; import { formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, } from "./utils/testing"; ⋮---- function createTempDir prefix: string : string ⋮---- function writeFile filePath: string, content: string : void Evidence: `src/bundle-auto-detection.test.ts`
- **Bundle Discovery.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { detectSourceProtocol, findCachedBundle, listCachedBundles, normalizeBundleSource, } from "./bundle-discovery"; ⋮---- const normalize = ⋮---- const findBundle = ⋮---- function createLibraryDir : string ⋮---- function writeManifest libraryDir: string, source: string, bundle: string, manifest: object, : void ⋮---- function writeManifestAtRepoRoot libraryDir: string, source: string, manifest: object, : void Evidence: `src/bundle-discovery.test.ts`
- **Bundle Fetch.Integration.Test** (source_file): import { execFileSync } from "node:child process"; import fs from "node:fs"; import http, { type IncomingMessage, type Server, type ServerResponse, } from "node:http"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, beforeEach, describe, expect, it } from "vitest"; ⋮---- import { clearAndRefetchCachedRemoteSource, fetchRemoteSource, inspectRemoteSource, readCachedSourceRevision, restoreCachedRemoteSourceRevision, updateCachedRemoteSource, } from "./bundle-fetch"; ⋮---- interface FakeGithubState { archives: Record ; branches: Record ; commits: string ; defaultBranch: string; failArchiveFor?: string; owner: string; repo: string; requests: string ; tagObjects:… Evidence: `src/bundle-fetch.integration.test.ts`
- **Bundle Fetch.Test** (source_file): import { execFileSync } from "node:child process"; import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; ⋮---- import { fetchRemoteSource } from "./bundle-fetch"; ⋮---- function createLibraryDir : string ⋮---- // When ⋮---- // When ⋮---- // When ⋮---- // When ⋮---- // When ⋮---- // When ⋮---- // When ⋮---- // When Evidence: `src/bundle-fetch.test.ts`
- **Bundle Item Refs.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { resolveBundleItemRefs } from "./bundle-item-refs"; ⋮---- function createTempDir prefix: string : string ⋮---- function writeFile filePath: string, content: string : void ⋮---- function writeRefsFile bundleDir: string, refs: object : void ⋮---- function writeCachedSkill options: { libraryDir: string; source: string; bundle: string; skillName: string; skillsPath?: string; } : void ⋮---- function writeCachedAgent options: { libraryDir: string; source: string; bundle: string; agentName: string; } : void ⋮---- function writeCachedRootIns… Evidence: `src/bundle-item-refs.test.ts`
- **Bundle Items.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { assertBundleSupportsRequestedItems, bundleItemSelectionsEqual, isDirectoryItemSelected, isRootInstructionItemSelected, listSelectableBundleItems, mergeDesiredBundleItems, normalizeBundleItemSelector, normalizeBundleItemSelectors, } from "./bundle-items"; import type { BundleManifest } from "./bundle-manifest"; ⋮---- function createTempDir : string ⋮---- function writeFile filePath: string, content: string : void Evidence: `src/bundle-items.test.ts`
- **Bundle Manifest.Test** (source_file): import path from "node:path"; ⋮---- import { describe, expect, it } from "vitest"; ⋮---- import { parseBundleManifest, resolveCachedBundleLayout, } from "./bundle-manifest"; ⋮---- const parse = ⋮---- const resolve = Evidence: `src/bundle-manifest.test.ts`
- **Bundle Materialization.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it, vi } from "vitest"; ⋮---- import type { BundleManifest } from "./bundle-manifest"; import { materializeBundle, previewMaterializeBundleWriteTargets, } from "./bundle-materialization"; import type { ToolName } from "./tool-mapping"; import { formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, } from "./utils/testing"; ⋮---- function createTempDir prefix: string : string ⋮---- function writeFile filePath: string, content: string : void Evidence: `src/bundle-materialization.test.ts`
- **Bundle Translation.Test** (source_file): import { describe, expect, it } from "vitest"; ⋮---- import { translateAgent, translateCommand, translateRootInstruction, translateSkill, } from "./bundle-translation"; Evidence: `src/bundle-translation.test.ts`
- **Cli Run Bundle Item Refs.Test** (source_file): import fs from "node:fs"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, runGit, updateRemoteBundleSource, writeBundleFile, writeManifest, } from "./cli.test-support"; import { run } from "./index"; ⋮---- function writeCanonicalSkill options: { homeDir: string; source: string; bundle: string; skillName: string; } : void ⋮---- function writeCanonicalAgent options: { homeDir: string; source: string; bundle: string; agentName: string; } : void ⋮---- function writeCanonicalCommand options: { homeDir: string; source: string; bundle: strin… Evidence: `src/cli-run-bundle-item-refs.test.ts`
- **Cli Run Interactions.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-interactions.test.ts`
- **Cli Run Remove.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-remove.test.ts`
- **Cli Run Root Composition.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-root-composition.test.ts`
- **Cli Run Root State.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-run-root-state.test.ts`
- **Cli Tracked Shadow Lifecycle.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-tracked-shadow-lifecycle.test.ts`
- **Cli Tracked Shadow Refresh.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it, vi } from "vitest"; ⋮---- import { createHelpText, createPromptClientForSelections, parseCliArgs, } from "./cli"; import { assertAgentsDocument, assertClaudeDocument, createHomeDir, createLinkedWorktree, createPromptClientStub, createRemoteBundleSource, createRepository, createSyncRepository, expectAgentsDocument, expectClaudeDocument, fingerprintFile, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, pathExists, pushSyncRepositoryUpdate, readGitIndexFlag, renderBundleListOutput, runGit, setupSharedRootInstruct… Evidence: `src/cli-tracked-shadow-refresh.test.ts`
- **Cli.Test Support** (source_file): import { execFileSync } from "node:child process"; import { createHash } from "node:crypto"; import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach } from "vitest"; ⋮---- import type { PromptClient } from "./cli"; import { expectAgentsDocument as assertAgentsDocument, expectClaudeDocument as assertClaudeDocument, formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, formatTrackedRootInstructionShadowBlock, writeRootInstructionBundleFixture as writeRootInstructionBundle, setupSharedRootInstructionBundles as writeSharedRootInstructionBundles, } from "./utils/testing"; ⋮---- export function createHomeDir : string ⋮---- expo… Evidence: `src/cli.test-support.ts`
- **Git Context.Test** (source_file): import { execFileSync } from "node:child process"; import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { detectGitContext } from "./git-context"; ⋮---- function createRepository : string ⋮---- function runGit cwd: string, args: string : string Evidence: `src/git-context.test.ts`
- **Git Context** (source_file): import { execFileSync } from "node:child process"; import { createHash } from "node:crypto"; import fs from "node:fs"; import path from "node:path"; ⋮---- export interface GitContext { repoRoot: string; worktreeRoot: string; gitDir: string; gitCommonDir: string; isWorktree: boolean; repoFingerprint: string; worktreeId: string; } ⋮---- export interface DetectGitContextOptions { cwd: string; } ⋮---- export function detectGitContext options: DetectGitContextOptions, : GitContext null ⋮---- function gitRevParse cwd: string, args: string : string null ⋮---- function fingerprint value: string : string Evidence: `src/git-context.ts`
- **Git Exclude.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { configureSkulExcludeBlock, hasSkulExcludeBlock, removeSkulExcludeBlock, } from "./git-exclude"; ⋮---- function createGitDir : string ⋮---- function readExcludeFile gitDir: string : string ⋮---- function writeExcludeFile gitDir: string, content: string : void Evidence: `src/git-exclude.test.ts`
- **Git Exclude** (source_file): import fs from "node:fs"; import path from "node:path"; ⋮---- export function configureSkulExcludeBlock options: { gitDir: string; files: string ; } : boolean ⋮---- export function removeSkulExcludeBlock options: ⋮---- export function hasSkulExcludeBlock options: ⋮---- function resolveExcludeFile gitDir: string : string ⋮---- function readExcludeFile excludeFile: string : string ⋮---- function writeExcludeFile excludeFile: string, content: string : true ⋮---- function stripSkulExcludeBlock content: string : string ⋮---- function appendSkulExcludeBlock content: string, files: string : string ⋮---- function removeSkulExcludeContent content: string : string ⋮---- function buildSkulExcludeBlock… Evidence: `src/git-exclude.ts`
- **Git Index.Test** (source_file): import { execFileSync } from "node:child process"; import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import { clearGitSkipWorktree, inspectGitIndexStages, inspectRootInstructionShadowTarget, isTrackedGitPath, readGitHeadBlob, readGitIndexFlags, setGitSkipWorktree, } from "./git-index"; ⋮---- function createRepository : string ⋮---- function commitTrackedFile repoRoot: string, filePath: string : void ⋮---- function writeFile repoRoot: string, filePath: string, content: string : void ⋮---- function runGit repoRoot: string, args: string , options: { allowFailure?: boolean } = {}, : string Evidence: `src/git-index.test.ts`
- **Index.Global.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it, vi } from "vitest"; ⋮---- import type { PromptClient } from "./cli"; import { run } from "./index"; import { readRegistryFile, writeRegistryFile } from "./registry"; import { formatExpectedRootInstructionDocument, formatRootInstructionBundleBlock, } from "./utils/testing"; ⋮---- function createHomeDir : string ⋮---- function writeManifest homeDir: string, source: string, bundle: string, manifest: object, : void ⋮---- function writeBundleFile homeDir: string, source: string undefined, bundle: string, relativePath: string, content: string, : void ⋮---- function pat… Evidence: `src/index.global.test.ts`
- **Registry.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { describe, expect, it } from "vitest"; ⋮---- import { createEmptyRegistry, type DesiredBundleEntry, listManagedPathsForRemoval, parseRegistry, readRegistryFile, removeWorktreeState, type ShadowedFileState, upsertRepoState, upsertWorktreeState, writeRegistryFile, } from "./registry"; ⋮---- function makeRepoEntry overrides: object = ⋮---- function makeWorktreeEntry overrides: object = ⋮---- function makeRegistry overrides: object = ⋮---- function makeShadowedFileEntry overrides: Partial = {}, : ShadowedFileState Evidence: `src/registry.test.ts`
- **Registry** (source_file): import fs from "node:fs"; import path from "node:path"; ⋮---- import { type BundleItemSelector, normalizeBundleItemSelector, } from "./bundle-items"; import { pathDepth } from "./fs-utils"; import { listGlobalToolDefinitions, listToolDefinitions, type ToolName, } from "./tool-mapping"; ⋮---- function isToolName value: string : value is ToolName ⋮---- export interface DesiredBundleEntry { bundle: string; source?: string; tools?: ToolName ; items?: BundleItemSelector ; protocol: "https" "ssh"; ref?: string; resolved ref?: string; resolved commit?: string; disable model invocation?: boolean; } ⋮---- export interface MaterializedToolState { files: string ; file fingerprints?: Record ; directori… Evidence: `src/registry.ts`
- **Root Instruction Content.Test** (source_file): import fs from "node:fs"; import os from "node:os"; import path from "node:path"; ⋮---- import { afterEach, describe, expect, it } from "vitest"; ⋮---- import type { BundleManifest } from "./bundle-manifest"; import { collectComposedRootInstructionContents } from "./root-instruction-content"; ⋮---- function createTempDir : string ⋮---- function writeFile filePath: string, content: string : void Evidence: `src/root-instruction-content.test.ts`
- **Root Instruction Render.Test** (source_file): import { createHash } from "node:crypto"; ⋮---- import { describe, expect, it } from "vitest"; ⋮---- import { renderTrackedRootInstructionShadow } from "./root-instruction-render"; Evidence: `src/root-instruction-render.test.ts`
- The remaining 7 evidence entries are in `AI_CONTEXT_PACK.json` or `EVIDENCE_INDEX.json`.

## Rules the Host AI Must Follow

- **Treat this asset as pre-work context, not a runtime environment.**: The AI Context Pack contains only an evidence-backed understanding of the project, not the project's executable state. Evidence: `package.json`, `website/package.json`, `CLAUDE.md`
- **When answering the user, distinguish what can be previewed from what can only be verified after install.**: The consumer value of the pre-install experience comes from reducing bad installs and misjudgments, not from pretending to be a real run. Evidence: `package.json`, `website/package.json`, `CLAUDE.md`

## Questions the User Should Answer First

- Which host AI or local environment do you plan to use it in?
- Do you just want to experience the workflow first, or are you ready to actually install?
- What matters most to you: install cost, output quality, or conflicts with your existing rules?

## Acceptance Checks

- Every capability claim can be traced back to a file path in evidence_refs.
- AI_CONTEXT_PACK.md does not package previews as a real run.
- The user can understand who it fits, what it can do, how to start, and the risk boundaries within 3 minutes.

---

## Doramagic Context Augmentation

The following sections strengthen the repository context for a host AI. Human Manual data is a reading route, and pitfall notes become operating constraints.

## Human Manual Outline

Usage rule: this is only a reading route and salience signal, not factual authority. Concrete claims must still return to repo evidence or Claim Graph.

Host AI hard rules:
- Do not treat page titles, section order, summaries, or importance values as factual project evidence.
- When explaining the Human Manual outline, state that it is only a reading route or salience signal.
- Capability, installation, compatibility, runtime state, and risk claims must cite repo evidence, source paths, or Claim Graph.

- **Architecture & Module Layout**: importance `high`
  - source_paths: src/index.ts, src/cli.ts, bin/skul.js, src/fs-utils.ts, package.json
- **CLI Commands & User-Facing Workflows**: importance `high`
  - source_paths: src/cli.ts, bin/skul.js, src/cli-parser.test.ts, src/cli-run-basic.test.ts, src/cli-run-items.test.ts
- **Bundle Discovery, Fetching & Manifest**: importance `high`
  - source_paths: src/bundle-discovery.ts, src/bundle-fetch.ts, src/bundle-manifest.ts, src/bundle-items.ts, src/bundle-item-refs.ts
- **Materialization, Tool Mapping, Root Instructions & State**: importance `high`
  - source_paths: src/bundle-materialization.ts, src/tool-mapping.ts, src/root-instruction-content.ts, src/root-instruction-render.ts, src/root-instruction-state.ts

## Repo Inspection Evidence

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `1a6aaf7a49e1ff9ad1ef10129de4e39834f759b9`
- inspected_files: `README.md`, `package.json`, `pnpm-lock.yaml`, `docs/advanced.md`, `src/bundle-auto-detection.test.ts`, `src/bundle-discovery.test.ts`, `src/bundle-discovery.ts`, `src/bundle-fetch.integration.test.ts`, `src/bundle-fetch.test.ts`, `src/bundle-fetch.ts`, `src/bundle-item-refs.test.ts`, `src/bundle-item-refs.ts`, `src/bundle-items.test.ts`, `src/bundle-items.ts`, `src/bundle-manifest.test.ts`, `src/bundle-manifest.ts`, `src/bundle-materialization.test.ts`, `src/bundle-materialization.ts`, `src/bundle-translation.test.ts`, `src/bundle-translation.ts`

Host AI hard rules:
- Without repo_clone_verified=true, do not claim that the source code has been read.
- Without repo_inspection_verified=true, do not write README, docs, or package-file conclusions as facts.
- Without quick_start_verified=true, do not claim that the Quick Start path has run successfully.

## Doramagic Pitfall Constraints

These rules come from Doramagic discovery, validation, or compilation findings. The host AI must treat them as operating constraints, not background notes.

### Constraint 1: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: v0.1.1
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v0.1.1. Context: Observed when using node
- Why it matters: Upgrade or migration may change expected behavior: v0.1.1
- Evidence: failure_mode_cluster:github_release | https://github.com/sjquant/skul/releases/tag/v0.1.1
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 2: Capability evidence risk requires verification

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: capability.assumptions | https://github.com/sjquant/skul
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 3: Security or permission risk requires verification

- Trigger: no_demo
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: downstream_validation.risk_items | https://github.com/sjquant/skul
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 4: Security or permission risk requires verification

- Trigger: no_demo
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: risks.scoring_risks | https://github.com/sjquant/skul
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 5: Maintenance risk requires verification

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: evidence.maintainer_signals | https://github.com/sjquant/skul
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 6: Maintenance risk requires verification

- Trigger: release_recency=unknown。
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: evidence.maintainer_signals | https://github.com/sjquant/skul
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 7: Maintenance risk requires verification

- Trigger: Developers should check this maintenance risk before relying on the project: v0.1.2
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v0.1.2. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: v0.1.2
- Evidence: failure_mode_cluster:github_release | https://github.com/sjquant/skul/releases/tag/v0.1.2
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.
