agentleFS
MicrosoftKnown publishermicrosoft/nacelle/.github/copilot-instructions.md

nacelle

Copilot instructions4 starsChanged 4 months agoMITView on GitHub

Nacelle is an experimental Tokio-based Rust library for streaming services across TCP, Unix sockets, HTTP/1, and TLS-enabled listeners. Keep changes small, validated, and consistent with the existing crate boundaries. When asked to commit, use Conventional Commits with a short, scoped message such as fix: ..., feat: ..., perf: ..., docs: ..., or test: .... Commit only the coherent change requested; do not include unrelated working-tree changes.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

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

13 rules. About 0 are common, 3 are distinctive, and 10 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.

  • 10

    Very specific

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

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

    Read README.md and docs/topics/architecture.md before changing public behavior or crate boundaries.

    line 7
  2. Very specific:

    Keep transport-agnostic byte/message decoding, encoding, asynchronous reader/writer adapters, and reusable framing buffers in nacelle-codec.

    line 8
  3. Very specific:

    Keep transport-neutral request, response, handler, lifecycle, limits, telemetry, and TLS primitives in nacelle-core.

    line 9
  4. Very specific:

    Keep TCP and Unix socket behavior in nacelle-tcp, all http behavior in nacelle-http, and convenience re-exports plus the reference protocol …

    line 10
  5. Very specific:

    Treat TCP Protocol implementations as consumers of the nacelle-codec decoder contract and, together with HTTP conversion, as adapters …

    line 11
  6. Very specific:

    Keep generated files, dependency updates, formatting churn, and metadata edits out of scope unless required.

    line 13
  7. Distinctive:

    Add or update focused tests for behavior changes and regressions.

    line 21
  8. Very specific:

    Update nacelle-codec/README.md and docs/reference/nacelle-codec.md when codec APIs or contracts change.

    line 23
  9. Distinctive:

    Run the narrowest relevant test or check first, then broaden validation to match the change's blast radius.

    line 29
  10. Distinctive:

    Do not make unqualified production-readiness claims.

    line 30
  11. Very specific:

    Follow .github/instructions/rust.instructions.md for Rust formatting, linting, and workspace tests.

    line 32
  12. Very specific:

    Run ./scripts/validate-all.sh when changes affect feature combinations, TLS providers, crate integration, or release readiness.

    line 33
  13. Very specific:

    When asked to commit, use Conventional Commits with a short, scoped message such as fix: ..., feat: ..., perf: ..., docs: ..., or test: ....

    line 38

≈ “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

Nacelle Project Guidelines

Nacelle is an experimental Tokio-based Rust library for streaming services across TCP, Unix sockets, HTTP/1, and TLS-enabled listeners. Keep changes small, validated, and consistent with the existing crate boundaries.

Architecture

  • Read README.md and docs/topics/architecture.md before changing public behavior or crate boundaries.
  • Keep transport-agnostic byte/message decoding, encoding, asynchronous reader/writer adapters, and reusable framing buffers in nacelle-codec.
  • Keep transport-neutral request, response, handler, lifecycle, limits, telemetry, and TLS primitives in nacelle-core.
  • Keep TCP and Unix socket behavior in nacelle-tcp, all http behavior in nacelle-http, and convenience re-exports plus the reference protocol in nacelle.
  • Treat TCP Protocol implementations as consumers of the nacelle-codec decoder contract and, together with HTTP conversion, as adapters around the transport-neutral Handler boundary.
  • Preserve public APIs, feature behavior, configuration defaults, and wire behavior unless the task explicitly requires a change. Update the corresponding reference docs when these contracts change.
  • Keep generated files, dependency updates, formatting churn, and metadata edits out of scope unless required. Allow Cargo to update Cargo.lock only when dependency resolution changes.

Implementation

  • Inspect the nearby implementation, tests, manifests, and documentation before editing, then follow the local pattern.
  • Make the smallest coherent change in the crate that owns the behavior. Avoid moving transport-specific policy into nacelle-core.
  • Preserve the MessageDecoder progress contract: successful decoding consumes input, while requesting more input leaves the cumulative buffer unchanged. Custom decoders must reject oversized input before buffers can grow without bound.
  • Preserve nacelle-codec buffer ownership and zero-copy behavior unless the task explicitly changes that contract; decoded messages may share the reader's backing allocation.
  • Add or update focused tests for behavior changes and regressions. Cover feature-gated behavior under the relevant feature combinations.
  • Preserve bounded resource use, backpressure, graceful shutdown, and low-cardinality telemetry.
  • Update nacelle-codec/README.md and docs/reference/nacelle-codec.md when codec APIs or contracts change. Update the corresponding documentation for other public APIs, features, configuration, operator behavior, compatibility, or performance guidance.
  • docs/internal/ is intentionally blanket-ignored. Keep documents local and untracked; do not add .gitignore exceptions for internal docs.
  • .github/plans/ is intentionally blanket-ignored. Keep documents local and untracked; do not add .gitignore exceptions for plans.

Validation

  • Run the narrowest relevant test or check first, then broaden validation to match the change's blast radius.
  • Do not make unqualified production-readiness claims. Scope them by audience, environment, workload, and rollback posture, and report correctness, security, performance, operability, compatibility, and documentation evidence separately.
  • For codec changes, start with cargo test -p nacelle-codec --all-features and run its benchmark comparison when making performance claims.
  • Follow .github/instructions/rust.instructions.md for Rust formatting, linting, and workspace tests.
  • Run ./scripts/validate-all.sh when changes affect feature combinations, TLS providers, crate integration, or release readiness.
  • Build the mdBook documentation when changing documentation structure, links, or rendered content.

Commits

When asked to commit, use Conventional Commits with a short, scoped message such as fix: ..., feat: ..., perf: ..., docs: ..., or test: .... Commit only the coherent change requested; do not include unrelated working-tree changes.

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.