Instruction file imported from json-everything/json-everything (
.github/instructions/workflow.instructions.md). Copyright stays with the author.
Agent Workflow
This file defines how AI agents MUST orient themselves before making changes in this repository.
Each step in this section MUST be executed as an explicit tool call. A step MUST NOT be skipped; having a file's content already in context is not a valid reason to omit the tool call.
Before Making Any Code Changes
- List instruction files in
.github/instructions/*.instructions.mdand read relevant files for the task. - The following files MUST always be read via explicit tool calls before any other action:
workflow.instructions.mdcommands.instructions.mdpersonal-preferences.instructions.md
- Read additional files by concern:
code-style.instructions.mdwhen editing C# code.architecture.instructions.mdwhen adding projects, files, package references, or changing structure.tests.instructions.mdwhen editing tests or changing behavior.apis.instructions.mdwhen editingsrc/JsonSchema.Api/or its tests.domain-knowledge.instructions.mdwhen implementing behavior tied to JSON specifications or package intent.release-notes.instructions.mdwhen editing files intools/ApiDocsGenerator/release-notes/.instructions.instructions.mdwhen editing.instructions.mdfiles.
- For C# style and formatting, treat
.editorconfigandjson-everything.sln.DotSettingsin the repo root as authoritative. - Prefer minimal, targeted changes. Do not refactor unrelated code.
Principles
- Treat instruction files as the desired state for future contributions.
- Preserve public API compatibility unless the task explicitly requires a breaking change.
- Keep changes aligned with the repository's library-first design (packages under
src/). - Add or update tests for behavioral changes.
- Keep instructions dynamic. Do not wait for an explicit request to update instruction files when feedback reveals a missing or incorrect rule.
- If the user corrects a mistake or asks for a specific behavior — even once — update the relevant instruction file immediately alongside the code fix, without waiting to be asked.
- If an attempted fix does not work, revert that failed change before trying a different solution.