agentleFS
vzakusylovzakusylo/victron/.github/copilot-instructions.md

victron

Copilot instructions4 starsChanged 13 days agoMITView on GitHub

At the start of a new large or cross-cutting task in this repository, tell the user that work is starting, briefly state the plan. Skip this kickoff for routine, small tasks; this is an in-conversation notice, not a proactive alert. BACKLOG.md is the only place for tasks, plans, test plans (unit, Test GX, e2e), open PRs, deploy state and progress. Do not create other task or plan files. In the same PR as the work: add the task if it…

The file

We split this copilot-instructions.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not create other task or plan files.

    line 14
  2. Distinctive:

    One open PR at a time: Create each branch from a fresh master and keep it to its own files.

    line 23
  3. Distinctive:

    Don't open your PR while another PR is open: build and test locally, then wait until Claude releases it.

    line 24
  4. Very specific:

    After the PR is open, merge origin/master in (no further rebase) if master moves.

    line 28
  5. Very specific:

    Every infrastructure change bumps i# once per PR: node tools/infra-version.js bump "Short description" then node tools/infra-version.js …

    line 29
  6. Very specific:

    Do not change production flows.json or numbered NN *.js files in Test GX work.

    line 30
  7. Distinctive:

    Keep real backups, substitution maps and keys outside the repository and the Docker image.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 3,950 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Large-task kickoff

At the start of a new large or cross-cutting task in this repository, tell the user that work is starting, briefly state the plan. Skip this kickoff for routine, small tasks; this is an in-conversation notice, not a proactive alert.

Access

  • Do not ask the owner for permission before tool calls, repository inspection, local commands, Docker, the local Test GX, Playwright/Edge on the local dashboard, GitHub reads, pushing your branch, opening a PR or enabling auto-merge after the review gate below. The owner pre-approves these when starting Copilot CLI; just do the task.
  • Still never, without an explicit owner request in the task text: push to master, access or deploy to the live GX, read the real GX backup or secrets, remove a Docker data volume, delete a remote branch.
  • Real backups, substitution maps and keys stay outside the repository and the Docker image.

Tasks, plans and progress: one file

BACKLOG.md is the only place for tasks, plans, test plans (unit, Test GX, e2e), open PRs, deploy state and progress. Do not create other task or plan files. In the same PR as the work: add the task if it is new, set it to "in progress" with the branch / PR when you start, and move it to Done with the PR number and d# when you finish. Findings of an investigation go into the task's row or a sub-section of BACKLOG.md.

Workflow with the reviewer

Claude (in a separate chat) plans and reviews; you implement. The owner relays messages. Full model: docs/agent-workflow.md.

  • Work only on the branch named in the instructions. Never push to master; everything goes through a PR, including docs and these rules.
  • One open PR at a time. Create each branch from a fresh master and keep it to its own files.
    • Don't open your PR while another PR is open: build and test locally, then wait until Claude releases it.
    • The next task waits in its branch (local commits only, no PR); after the active PR merges it is rebased on the latest origin/master and only then opened.
    • Right before opening it: git fetch origin; git rebase origin/master, run sync again (d#), bump i# once on top of master, run check and all tests.
    • Push with --force-with-lease if the branch was pushed before, then open the PR. Enable auto-merge after review feedback is addressed and all threads are resolved.
    • After the PR is open, merge origin/master in (no further rebase) if master moves. Merges use merge commits.
  • Every infrastructure change bumps i# once per PR: node tools/infra-version.js bump "Short description" then node tools/infra-version.js check. See CLAUDE.md for the covered paths. Production-only and pure docs changes do not bump i#; report both versions from node tools/flows.js version.
  • Do not change production flows.json or numbered NN *.js files in Test GX work. If a scenario exposes a production bug, mark it expected_fail with a reference; the fix goes in its own PR.
  • Fix every PR comment before merge: Claude review findings of every severity, Copilot reviewer comments, and owner comments. Give each fix its own commit, reply on the thread with that commit, and resolve it. If a comment is wrong, reply with the reason and ask Claude; never silently resolve it. Keep auto-merge paused while any review thread remains unresolved.
  • Keep real backups, substitution maps and keys outside the repository and the Docker image.
  • Repository code, docs and commit messages are in English.
  • End every task with a short report in this format:
Branch: <name>
Commit: <SHA>, pushed: yes/no
PR: #<n> (open/draft) or none
Done:
- <item>
Checked:
- tests: <passed>/<total>
- test-gx-refresh.ps1: DIFF <n>, status <OK/WARN/FAIL>, reason
- manual: <what, result>
Not checked / deferred:
- <item, reason>
Outside the branch:
- <anything pushed elsewhere; should be "none">

Model

Claude picks a worker tier per task with herdr-task.ps1 new <branch> -Tier <tier> using the repo launcher and tier definitions. Reasoning effort is low unless the tier specifies otherwise; -Model and -Effort override the tier. Check the new worker's status bar for the intended model: an unknown model ID falls back to Copilot's default. If the session runs on a different model than intended, say so in the first line of the report. Standard-tier terminal fallback: copilot --allow-all --model gpt-6.2-sol --reasoning-effort low -i 'Read <brief> and do it'.

Herdr workers

New tasks are started as Herdr workers (one worktree under ~\.herdr\worktrees\victron\<branch>). Claude may type into your pane: a correction or progress?. Answer in 2–5 lines (done, now, next, blockers), then continue the task.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.