Skip to content

LNVPS/agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared Agent Guidelines

A reusable set of coding agent guidelines that can be shared across multiple repositories using git submodules.

Structure

.
├── AGENTS.md.template      # Template for your project's AGENTS.md
├── bug-fixes.md
├── coverage.md             # Base coverage rules (language-agnostic)
├── incremental-work.md
├── rust/
│   └── coverage.md         # Rust-specific coverage tooling
├── typescript/
│   └── coverage.md         # TypeScript-specific coverage tooling
└── README.md

Bootstrap: Adding to Your Project

1. Add as a git submodule

cd your-project
git submodule add https://github.com/LNVPS/agents.git agents
git submodule update --init --recursive

This places the submodule at agents/, so paths become agents/coverage.md.

2. Create your project's AGENTS.md

Copy the template and customize it:

cp agents/AGENTS.md.template AGENTS.md

Edit AGENTS.md to:

  • Replace [PROJECT_NAME] with your project name
  • Add your project-specific docs to the table
  • Add any active work files

3. Create work/ directory

mkdir -p work

Updating the Submodule

To pull updates from the shared repo:

cd agents
git pull origin main
cd ..
git add agents
git commit -m "Update agents submodule"

Generic Guidelines

The generic guidelines cover:

  • bug-fixes.md - Regression test requirements for bug fixes
  • coverage.md - 100% function coverage policy for new/modified code
  • incremental-work.md - Work file format for tracking multi-session tasks

Language-Specific Guidelines

Language-specific docs are organized in subdirectories:

  • rust/ - Rust-specific tooling and commands
    • coverage.md - cargo-llvm-cov / cargo-tarpaulin instructions
  • typescript/ - TypeScript-specific tooling and commands
    • coverage.md - Jest/Vitest/c8 coverage instructions

Projects should reference both the generic doc and the appropriate language-specific doc. For example, a Rust project would load both coverage.md and rust/coverage.md.

Contributing

To add new generic guidelines that apply across all projects:

  1. Add the doc to this repo
  2. Update AGENTS.md.template to reference it
  3. Update this README

About

Common agent instructions for LNVPS

Resources

Stars

Watchers

Forks

Contributors