Project
A project is the codebase whose rules and skills Trailguide manages, such as a web application, a service, or a CLI tool. The project root is that codebase’s top-level directory.
A project can use rules and skills written just for it, ones it takes from libraries and other repositories, or both. Each project chooses which ones to include and when to take updates. A repository can be a project and a library at once, with the same files.
What a project includes
Section titled “What a project includes”Your codebase keeps its existing files. Trailguide adds a Trailguide directory, .trailguide/, at the project root, and, once you install skills, a copy of each skill in the folders your agents read:
my-project/ src/ README.md .trailguide/ README.md config.yaml lock.json RULES.md SKILLS.md rules/ skills/ assets/ vendor/ generated/ .claude/skills/ .agents/skills/Inside .trailguide/:
- Configuration in
config.yamlnames the project’s sources, the skills and rules it includes from them, and the agents to install skills for, plus versions, aliases, and any skills or rules to exclude or fork. - Authored content in
rules/,skills/, andassets/holds the rule groups, rules, skills, and shared files you write for this project. - The lockfile,
lock.json, records the revision the project took from each source and the version of every rule and skill. - Vendor snapshots in
vendor/keep a copy of what the project takes from each source, with a record of the library release or commit it came from. - Generated guidance combines your included rules into
RULES.md, beside the configuration, and rule group pages and rule files ingenerated/that agents can read, and lists installed skills inSKILLS.md.
Outside .trailguide/, Trailguide writes installed skills into .claude/skills/ and .agents/skills/, the targets your configuration names. It manages only the skill folders it installed there; other tools’ skills in the same folders stay untouched.
You maintain the configuration and authored content. Trailguide manages the vendor snapshots, generated files, and installed skills. For examples of each file, see Project files.
Set up a project
Section titled “Set up a project”Run trailguide project init from your codebase’s root to create its .trailguide/ directory. In a Git repository, subsequent project commands also work from subdirectories. Outside Git, run them from the project root.
Follow Set up your first project to add rules, generate guidance, and tell your agent to read it.