agentleFS
swt-labsswt-labs/vibe-better-with-claude-code-vbw/.github/copilot-instructions.md

vibe-better-with-claude-code-vbw

Copilot instructions81 starsChanged 5 months agoMITView on GitHub

The file

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

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Read README.md first, then CONTRIBUTING.md, then the relevant files under commands/, scripts/, testing/, hooks/, templates/, or references/.

    line 4
  2. Distinctive:

    Keep changes surgical. Many behaviors are enforced by contract tests that grep for exact phrases, tool names, filenames, and command …

    line 6
  3. Very specific:

    Prefer bash and existing repo utilities.

    line 16
  4. Distinctive:

    When editing command markdown, remember the command files are LLM-consumed artifacts.

    line 18
  5. Very specific:

    If you change command or hook behavior, search testing/ for the corresponding contract before editing.

    line 19
  6. Very specific:

    Keep the repo zero-dependency in spirit: portable bash, jq, git, and the existing test tools.

    line 20
  7. Very specific:

    Keep .github/copilot-instructions.md tracked in git.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 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

Copilot cloud agent instructions for VBW

Start here

  • Read README.md first, then CONTRIBUTING.md, then the relevant files under commands/, scripts/, testing/, hooks/, templates/, or references/.
  • This repo is a Claude Code plugin implemented mostly as bash plus command markdown. There is no normal app build; most changes are to shell scripts, slash-command markdown, hook wiring, templates, and tests.
  • Keep changes surgical. Many behaviors are enforced by contract tests that grep for exact phrases, tool names, filenames, and command structure.

Repo shape

  • commands/*.md: slash-command definitions with YAML frontmatter. Preserve frontmatter shape, explicit name: vbw:*, and the repo's direct/dry tone.
  • scripts/*.sh and scripts/lib/*.sh: runtime logic. Prefer reusing existing helpers instead of adding new one-off patterns.
  • hooks/hooks.json: plugin hook wiring. Hooks must degrade gracefully; they should not break a Claude Code session.
  • testing/ and tests/: contract checks and bats coverage. If you change behavior, inspect the matching testing/verify-*.sh file before editing.
  • .claude-plugin/plugin.json, VERSION, .claude-plugin/marketplace.json, and marketplace.json: keep versions aligned only when intentionally doing a release/version task. Do not bump versions for ordinary fixes.

Working conventions

  • Prefer bash and existing repo utilities. Do not introduce Node/Python/Ruby tooling or new dependencies unless the task explicitly requires it.
  • Preserve the plugin-root resolution pattern already used in command markdown and hooks. In shell blocks, do not assume ${CLAUDE_PLUGIN_ROOT} exists as a normal environment variable; reuse the existing /tmp/.vbw-plugin-root-link-${CLAUDE_SESSION_ID:-default} / ensure-plugin-root-link.sh pattern instead of inventing a new resolver.
  • When editing command markdown, remember the command files are LLM-consumed artifacts. Small wording changes can break tests or behavior.
  • If you change command or hook behavior, search testing/ for the corresponding contract before editing. The test usually documents the intended invariant better than a quick skim of the implementation.
  • Keep the repo zero-dependency in spirit: portable bash, jq, git, and the existing test tools.

Validation

  • Primary local verification entrypoint: bash testing/run-all.sh
  • Shared lint entrypoint: bash testing/run-lint.sh
  • CI parity notes:
    • testing/run-all.sh expects jq, shellcheck, and bats.
    • CI runs lint, contract checks, bats shards, and serial bats separately; see .github/workflows/ci.yml.
  • For command or shell changes, also run the most relevant targeted testing/verify-*.sh script(s).

Known onboarding quirks / errors encountered

  • bash testing/run-all.sh currently fails in a fresh environment if bats is missing, even when lint and contract checks pass. Workaround: install bats-core before relying on full CI-parity local verification, or at minimum run the relevant non-bats checks explicitly.
  • bash testing/verify-statusline-qa-lifecycle.sh should now exit cleanly. If it fails, treat it as a real regression rather than an expected SIGPIPE quirk.
  • Keep .github/copilot-instructions.md tracked in git. Do not add it back to .gitignore.

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.