Skip to content

Restructure agent docs: critical rules first + skill routing - #288

Open
chowbao wants to merge 1 commit into
masterfrom
patch/claude-docs-update
Open

Restructure agent docs: critical rules first + skill routing#288
chowbao wants to merge 1 commit into
masterfrom
patch/claude-docs-update

Conversation

@chowbao

@chowbao chowbao commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What

Restructures .claude/CLAUDE.md so the agent reads the critical safety rules first and can route to the right skill.

Changes

  • Lead with a Critical rules section (never run the prod target locally; never write to crypto-stellar/hubble-261722; run dbt deps after a pin/branch change; use the bq CLI for int64 IDs).
  • Add a task → skill routing table pointing at the shared .claude/skills/.
  • Fold the trailing Rules section into the above; minor accuracy fixes.

Docs-only — no runtime or release impact.

Lead with the critical safety rules (no prod target locally, no writes to
crypto-stellar/hubble-261722, dbt deps freshness, bq CLI for int64 IDs),
add a task -> skill routing table, and fold in the old Rules section.
Copilot AI review requested due to automatic review settings July 3, 2026 18:26
@chowbao
chowbao requested a review from a team as a code owner July 3, 2026 18:26
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reorganizes the agent guidance in .claude/CLAUDE.md so that high-risk operational constraints are encountered first and users can quickly route to the right shared skill for common tasks.

Changes:

  • Adds a prominent Critical rules section at the top (local/production safety, release/pin workflow, pre-commit expectation, and BigQuery INT64 querying guidance).
  • Introduces a task → skill routing table that points to shared skills in the monorepo checkout.
  • Consolidates/removes the trailing “Rules” section and adds a targeted snapshot-work pointer near the snapshot variables section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .claude/CLAUDE.md
| PR check failing (CI Linting, diff-quality, Datafold diff comment) | `dbt-ci-triage` |
| Create/modify/repair an SCD2 snapshot model | `dbt-incremental-snapshots` |
| Model behaves differently locally vs in Airflow; incremental runs 0 rows | `dbt-batch-window-vars` |
| Slow or expensive model; merge vs insert_overwrite | `dbt-model-optimization` |
Comment thread .claude/CLAUDE.md
- `is_recency_airflow_task` — Flag for Airflow task type

See `docs/snapshot.md` for the full control flow diagram.
See `docs/snapshot.md` for the full control flow diagram. For hands-on snapshot work (run_snapshot_test.sh, setup_db/teardown_db, missing-days holes), use the `dbt-incremental-snapshots` skill.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants