# Bootstrap Repository Harness

> Bootstrap a tool-neutral agent harness with authoritative contracts, state ownership rules, and verified workflows.

Bootstrap Repository Harness is a free AI agent skill on Agensi by Ranger Jing, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ranger Jing](https://www.agensi.io/creators/ranger-jing)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/bootstrap-repository-harness
- Tags: ai-agents, prompt-engineering, repository-management, devops, documentation

## About this skill

When you drop an AI agent into a new repository, it often lacks the context to make safe, architecturally sound decisions. It might invent commands, ignore ownership boundaries, or fail to follow existing patterns. This skill solves that by establishing a durable, tool-neutral development contract between the human developer and the agent. It moves beyond fragile system prompts by encoding repository-specific rules, state ownership, and verification workflows directly into the codebase.

### What it does
- **Repository Profiling**: Inspects source code, manifests, and runtime environments to build an evidence-backed profile of the project.
- **Contract Generation**: Materializes a root `AGENTS.md` containing nine canonical engineering principles that govern agent behavior.
- **Architecture Mapping**: Documents modules, state ownership, and architectural boundaries to prevent agents from clobbering shared state.
- **Workflow Routing**: Creates portable repository skills for complex, multi-step tasks like migrations or design changes.
- **Decision Gating**: Enforces a formal design decision gate for changes to internal contracts or public APIs.

### How it works
1. **Inspect**: The skill reads implementations and tests to identify how the project builds, runs, and verifies behavior.
2. **Classify**: It routes every rule or fact to its proper destination, such as `AGENTS.md`, an authoritative doc, or a portable `SKILL.md`.
3. **Decision Gate**: It pauses to obtain explicit user approval for any changes to module boundaries or state ownership.
4. **Materialize**: It writes the tool-neutral files to the repository root and subprojects.
5. **Verify**: It runs a mechanical validator to ensure the new harness meets all integrity requirements.

### Why this beats prompting it yourself
Generic prompts cannot enforce state ownership or track architectural history. This skill transforms the repository into the source of truth, ensuring that every agent session follows the same authoritative contracts and verified commands, regardless of which LLM or IDE you use.

### Use cases
- Bootstrapping a new repository for AI-assisted development.
- Migrating tool-specific agent configurations to a portable, tool-neutral format.
- Documenting complex state ownership rules to prevent data corruption.
- Establishing formal design-change workflows for high-stakes refactoring.

### Known limitations
Does not perform application-level code refactoring or bug fixes. Requires local execution environment access to verify commands. Destructive or remote commands are skipped by default.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Bootstrap Repository Harness skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent an AI agent from making architecturally unsound decisions in a new repository?

This skill establishes a tool-neutral development contract by creating an AGENTS.md file and authoritative documentation. It prevents agents from inventing commands or clobbering shared state by encoding repository-specific rules and state ownership boundaries directly into the codebase.

### What does my agent need to have access to for this skill to work?

To use this skill, your agent needs access to your local execution environment and repository source code. It uses these to inspect manifests, run safe verification commands like linters or tests, and validate that the new harness meets integrity requirements.

### What files and formats are generated once the bootstrap process is complete?

The primary output is a root AGENTS.md file containing nine canonical engineering principles and a workflow routing table. You may also get focused authoritative docs for architecture facts and portable SKILL.md files for multi-step workflows, all kept in a tool-neutral format.

### Are there specific tasks or types of code changes that this skill will not perform?

This skill does not perform application-level code refactoring, fix bugs, or handle ordinary implementation tasks. It also skips destructive or remote commands by default and requires explicit user approval before changing module boundaries or public APIs.

### When is the best time to ask my agent to use this skill?

You should invoke this skill when you are first setting up a repository for AI-assisted development or when you need to migrate tool-specific configs into a neutral format. Simply ask your agent to bootstrap or rebuild the repository development harness using this skill.

### How does the skill handle conflicting information about a project's architecture?

The skill uses a formal design decision gate that pauses whenever a change affects state ownership, module decomposition, or internal contracts. It presents you with evidence and recommendations, requiring your explicit approval before any of these architectural boundaries are modified.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
