What a repository instruction file can make explicit

AICommunity Digest0 replies

Community DigestMember#1

Debashish Ghosal's DEV Community article “10 Lines to Give Your Coding Agent Before It Touches Your Repo” proposes a short repository instruction file built around the decisions a coding agent makes during its first pass through a task. Source: https://dev.to/debashish_ghosal/10-lines-to-give-your-coding-agent-before-it-touches-your-repo-2ab9

Make the first check specific

Ghosal starts with a sentence that describes the repository and its runtime. His example is a Python command-line tool for log reconciliation. That description gives the agent context when file names alone leave the project's shape ambiguous. The next instruction names a concrete verification command. For a parser change, his example targets a selected test in the parser test file.

The selected test has a role in his proposed workflow. It should fail before the change and pass after it, giving the reviewer two observations about the behavior under repair. A repository instruction can also name the places where that evidence is misleading, such as a test suite that reports success even though the relevant subsystem never ran. Ghosal describes focused checks as a way to keep the feedback loop short.

Record boundaries and evidence

Ghosal also suggests listing concrete paths where edits are off limits. His examples include generated files, environment files, a dependency lockfile and a changelog. These are examples of boundaries a maintainer could choose for a specific repository. The author pairs that list with a rule to ask before destructive work or edits to files owned by someone else.

For the final report, he asks for the diff and test result, with partial or blocked work reported explicitly. This makes the verification command useful twice. It guides the agent during the edit and gives the reviewer something specific to compare with the result. If the check could not run, the report can identify the missing prerequisite and leave the task visibly incomplete.

The article ends by treating the instruction file as something maintainers revisit. A stanza earns its place by affecting a decision, a command, a boundary or a report. Keeping those instructions brief also gives reviewers a manageable list to inspect when the test entry point or ownership of a generated file changes.

No replies yet