shared-standards
Shared GitHub Copilot instructions, generic workflows, templates, and Claude Code DevEx tooling for the ecosystem.
Structure
.claude/
hooks/
circuit-breaker.cjs # Circuit breaker for API calls
secret-scanner.cjs # Secret detection before git commit
frustration-detection.cjs # Prompt context injection
verifiable-thresholds.cjs # Code quality threshold warnings
memory-consolidation.cjs # Context hygiene CLI tool
model-debt-inventory.cjs # Model-specific rule inventory CLI
settings.json # Claude Code hook configuration
thresholds.json # Configurable quality thresholds
secret-scanner-allowlist.json # Allowlist for secret scanner
HOOKS_README.md # Full hooks documentation
copilot-instructions/
base.md # Base GitHub Copilot instructions
workflows/ # ⚠️ COPY-TO-USE templates — NOT callable via `uses: chrysa/shared-standards/...`
ci-python.yml # Full CI pipeline template for Python projects (copy to .github/workflows/ci.yml)
ci-node.yml # Full CI pipeline template for Node/React projects
sonar.yml # SonarCloud workflow template (workflow_call-compatible after copy)
release.yml # Semantic release template (GitVersion + cliff)
labeler.yml # PR auto-labeler template (actions/labeler@v6)
pr-size.yml # PR size label template (codelytv/pr-size-labeler)
pages.yml # GitHub Pages deploy template
notion-roadmap-sync.yml # Notion roadmap sync template
notion-branch-sync.yml # Per-branch Notion docs template
regression-gate.yml # Regression gate (coverage + test count delta)
mutation-testing.yml # Mutation testing template (mutmut)
contract-testing.yml # Consumer-driven contract testing template
enforce-feature-branch.yml # Block PRs from non-conventional branch names
secret-scan.yml # Secret scanning with gitleaks
templates/
CLAUDE.md # Bootstrap CLAUDE.md template
CODEOWNERS # CODEOWNERS template (copy and adapt)
.gitignore.python # Python .gitignore
.gitignore.node # Node .gitignore
dependabot.yml # Dependabot config template
pr-template.md # Pull request template
vscode/
tasks.python.json # VS Code tasks template for Python projects
tasks.fullstack.json # VS Code tasks template for full-stack projects (Python + TS)
README.md # Documentation and keyboard shortcuts
e2e/ # Playwright E2E scaffold for fullstack repos (local dev, see docs/MAKEFILE-STANDARD.md)
playwright.config.ts
tests/e2e/smoke.spec.ts # auth-free smoke + optional fixtures.ts.example
issue-templates/
bug.md
feature.md
chore.md
Usage
Claude Code hooks
See .claude/HOOKS_README.md for full documentation.
Quick install in any repo:
cp -r path/to/shared-standards/.claude/hooks/ .claude/hooks/
# Merge .claude/settings.json manually
Copilot instructions
Copy copilot-instructions/base.md to .github/copilot-instructions.md in your repo and adjust.
Then append the per-stack guide that matches the repo: fastapi.md, django.md, react19.md,
python-library.md, monorepo.md, or gas.md. Each extends base.md and overrides it on conflict.
Workflows
Copy the relevant template from workflows/ to .github/workflows/ in your repo and adapt.
These are copy-to-use templates, not reusable workflows callable via uses:.
Composite actions (atomic steps) live in chrysa/github-actions — use them from inside your copied workflows.
# Example: add SonarCloud CI to your project
cp path/to/shared-standards/workflows/sonar.yml .github/workflows/sonar.yml
# Then edit to set your project key and secrets
Templates
Use templates/CLAUDE.md as a starting point for repo-specific CLAUDE.md files.
VS Code Tasks
Copy the appropriate tasks.json template to .vscode/tasks.json in your project.
See templates/vscode/README.md for the full task catalog and keyboard shortcut setup.
# Python project
cp path/to/shared-standards/templates/vscode/tasks.python.json .vscode/tasks.json
# Full-stack project (Python backend + TS frontend)
cp path/to/shared-standards/templates/vscode/tasks.fullstack.json .vscode/tasks.json
Then remove tasks that do not have a corresponding make target.
PII (GDPR) detection