Code editing

From edochi/mdvs · View interactive version

Code editing is an AI agent skill from the GitHub repository edochi/mdvs. Use when writing, modifying, or removing Rust code in the mdvs codebase. Covers implementation workflow, testing, verification, and downstream updates (specs, example_kb, mdbook).

How to use this skill

Skill file

Code Editing Conventions

Before Writing Code

module structure, and error handling style already in use.

the user.

Writing Code

Style

parameters are needed

Cross-cutting changes

If the change touches the type system, a violation type, a command's output, or

storage format — trace through the full pipeline:

discover → schema/config → validation → storage → search → output

Verify each stage handles the change correctly.

Testing

cargo test --features testing-mocks
cargo clippy --all-targets --features testing-mocks
just fmt

Always run just fmt after cargo clippy (not plain cargo fmt: the

rustfmt.toml options need the pinned nightly).

Updating Specs

behavior

Testing Against `example_kb`

end-to-end

Updating the mdbook

book pages with fresh output

the book skill)

output examples across multiple pages

TODOs

commit workflow — see the commit skill

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.