mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
* feat: add project-scoped instinct isolation * fix(continuous-learning-v2): harden instinct loading and promotion safety; sync v2.1 command docs * fix(ci): make copilot-setup-steps a valid GitHub Actions workflow * fix(hooks): stabilize docs warning inline JS regex parsing
67 lines
1.6 KiB
Markdown
67 lines
1.6 KiB
Markdown
---
|
|
name: instinct-export
|
|
description: Export instincts from project/global scope to a file
|
|
command: /instinct-export
|
|
---
|
|
|
|
# Instinct Export Command
|
|
|
|
Exports instincts to a shareable format. Perfect for:
|
|
- Sharing with teammates
|
|
- Transferring to a new machine
|
|
- Contributing to project conventions
|
|
|
|
## Usage
|
|
|
|
```
|
|
/instinct-export # Export all personal instincts
|
|
/instinct-export --domain testing # Export only testing instincts
|
|
/instinct-export --min-confidence 0.7 # Only export high-confidence instincts
|
|
/instinct-export --output team-instincts.yaml
|
|
/instinct-export --scope project --output project-instincts.yaml
|
|
```
|
|
|
|
## What to Do
|
|
|
|
1. Detect current project context
|
|
2. Load instincts by selected scope:
|
|
- `project`: current project only
|
|
- `global`: global only
|
|
- `all`: project + global merged (default)
|
|
3. Apply filters (`--domain`, `--min-confidence`)
|
|
4. Write YAML-style export to file (or stdout if no output path provided)
|
|
|
|
## Output Format
|
|
|
|
Creates a YAML file:
|
|
|
|
```yaml
|
|
# Instincts Export
|
|
# Generated: 2025-01-22
|
|
# Source: personal
|
|
# Count: 12 instincts
|
|
|
|
---
|
|
id: prefer-functional-style
|
|
trigger: "when writing new functions"
|
|
confidence: 0.8
|
|
domain: code-style
|
|
source: session-observation
|
|
scope: project
|
|
project_id: a1b2c3d4e5f6
|
|
project_name: my-app
|
|
---
|
|
|
|
# Prefer Functional Style
|
|
|
|
## Action
|
|
Use functional patterns over classes.
|
|
```
|
|
|
|
## Flags
|
|
|
|
- `--domain <name>`: Export only specified domain
|
|
- `--min-confidence <n>`: Minimum confidence threshold
|
|
- `--output <file>`: Output file path (prints to stdout when omitted)
|
|
- `--scope <project|global|all>`: Export scope (default: `all`)
|