Skip to main content

Crate instruction_files

Crate instruction_files 

Source
Expand description

Discovery, auditing, and sync for AGENTS.md/CLAUDE.md instruction files.

Re-exports§

pub use agent_runbooks as runbooks;

Structs§

AuditConfig
Configuration for instruction file discovery and auditing.
Issue
An issue found during auditing.

Functions§

check_actionable
Check that agent instruction files contain actionable content.
check_context_invariant
Check instruction files for machine-local path references.
check_library_context_policy
Check that a library AGENTS.md contains a ## Library Context Policy section with a resolvable link to LIBRARY_CONTEXT_POLICY.md.
check_line_budget
Check combined line count against budget.
check_staleness
Check if instruction files are older than source code.
check_tree_paths
Check that file paths referenced in “## Project Structure” blocks exist.
find_instruction_files
Discover all instruction files under the given root.
find_root
Find the project root by walking up from CWD.
init
Initialize instruction-files in a project.
init_runbooks
Initialize .agent/runbooks/ with bundled defaults.
is_agent_file
Check if a file path refers to an agent instruction file.
run
Run the full audit with the given configuration.