agentleFS
AltinityAltinity/clickhouse-sink-connector/.github/copilot-instructions.md

clickhouse-sink-connector

Copilot instructions345 starsChanged 35 days agoApache-2.0View on GitHub

The file

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

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

  • 3

    Very specific

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

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

    Every change must begin with a specification declaration in specs/.

    line 10
  2. Distinctive:

    Never generate code changes that diverge from or expand beyond declared specifications.

    line 11
  3. Distinctive:

    Every divergence is resolved by making ClickHouse match MySQL.

    line 16
  4. Distinctive:

    If MySQL defines a column that ClickHouse marks as MATERIALIZED, the MySQL value wins.

    line 18
  5. Very specific:

    Every modification must preserve the 13 System Invariants (I1–I13) defined in specs/CONSTITUTION.md.

    line 21
  6. Very specific:

    Always validate with python3 scripts/validate_specs.py.

    line 23

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

GitHub Copilot Instructions: ClickHouse Sink Connector

Architectural Philosophy & Core Contract

The ClickHouse Sink Connector is strictly defined as an exact, zero-loss replication tool from MySQL to ClickHouse using the MySQL binary log (binlog).

Non-Negotiable Operational Rules

  1. Spec-Driven Development (Mandatory):
    • This repository follows the Smart Ralph spec-driven development protocol (specs/SMART_RALPH_PROTOCOL.md).
    • Every change must begin with a specification declaration in specs/.
    • Never generate code changes that diverge from or expand beyond declared specifications.
  2. The Prime Directive: MySQL Is the Source of Truth:
    • The source MySQL database is always correct.
    • ClickHouse is the replica and must conform to MySQL.
    • Every divergence is resolved by making ClickHouse match MySQL.
    • ALIAS columns are ignored (query-time only).
    • If MySQL defines a column that ClickHouse marks as MATERIALIZED, the MySQL value wins; the connector converts the ClickHouse column to DEFAULT to permit writing.
  3. Invariants & Formal Verification:
    • Every modification must preserve the 13 System Invariants (I1–I13) defined in specs/CONSTITUTION.md.
    • The system state machine is formally modeled in Lean 4 (formal_specs/lean/). Do not introduce non-monotonic versioning or un-tombstoned sorting key mutations.
    • Always validate with python3 scripts/validate_specs.py.

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.