Replies: 3 comments 2 replies
-
|
We'll be getting rid of |
Beta Was this translation helpful? Give feedback.
-
|
Good question — they serve different scopes and that's why both exist:
|
CLAUDE.md |
custom_instructions |
|
|---|---|---|
| Scope | All Claude sessions | One GH Action workflow |
| Version controlled | Yes (in repo) | Yes (in workflow file) |
| Use for | Universal project rules | Trigger-specific overrides |
Think of CLAUDE.md as your constitution and custom_instructions as executive orders for specific situations. You probably need both if you're running multiple workflow triggers with different expectations.
See it in action: before vs after
Before (agent without discipline):
After (agent with continuous-improve installed):
Install:
npx continuous-improve-skill— works with Claude Code, Codex, Cursor, and ChatGPT.
Repo: naimkatiman/continuous-improve-skill
Beta Was this translation helpful? Give feedback.
-
The answerShort version: Correcting the community reply@naimkatiman described One more thing: The v1 instruction hierarchy (what actually matters)Claude Code Action v1 pulls instructions from multiple layers. They stack (concatenate) — nothing overrides anything else. Here's the full picture, broadest to most specific:
Layers 1-4 are just standard Claude Code behavior. They work the same whether you're running Worth noting: in the GH Action context, there's no What goes where — practical guidanceIn # Build & Test
- Run `pnpm test` before committing
- Use vitest, not jest
# Standards
- TypeScript strict mode, no `any`
- All public functions need JSDocIn # .claude/rules/api.md
---
paths: ["src/api/**/*.ts"]
---
All API endpoints must validate input with zod schemas.In # Only for this automation — not a universal project rule
claude_args: |
--system-prompt "You are reviewing for security issues only. Do not comment on style. Be concise — max 3 comments per file."In prompt: |
REPO: ${{ github.repository }}
PR NUMBER: ${{ github.event.pull_request.number }}
Review this PR for security vulnerabilities.Settings are also respectedTo @PaulRBerg's follow-up: yes, TL;DR
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just installed this and I am unsure what the benefit of this setting is:
We already have
CLAUDE.mdfor this (custom context/instructions).What's the benefit of overloading Claude's API with multiple ways of achieving the same goal?
Beta Was this translation helpful? Give feedback.
All reactions