← Browse

@luohaothu/instinct-export

A

Export instincts for sharing with teammates or other projects. Strips sensitive data and outputs shareable YAML.

skillclaude

Install

agr install @luohaothu/instinct-export --target claude

Writes 1 file into .claude/skills/, pinned to git-b5a09e82.

  • .claude/skills/instinct-export/SKILL.md

Document


name: instinct-export description: Export instincts for sharing with teammates or other projects. Strips sensitive data and outputs shareable YAML.

Instinct Export Skill

Export instincts to a shareable format for teammates, other projects, or backups.

Usage

/instinct-export                           # Export all personal instincts
/instinct-export --domain testing          # Export only testing instincts
/instinct-export --min-confidence 0.7      # Only high-confidence instincts
/instinct-export --output team-instincts.yaml

What to Do

  1. Read instincts from ~/.codex/instincts/personal/
  2. Filter based on flags
  3. Strip sensitive information (session IDs, file paths, old timestamps)
  4. Generate export file

Output Format (YAML)

version: "2.0"
export_date: "2026-02-08T10:30:00Z"

instincts:
  - id: prefer-functional-style
    trigger: "when writing new functions"
    action: "Use functional patterns over classes"
    confidence: 0.8
    domain: code-style
    observations: 8

Privacy

Exports include: trigger patterns, actions, confidence scores, domains, observation counts.

Exports do NOT include: actual code snippets, file paths, session transcripts, personal identifiers.

Flags

  • --domain <name>: Export only specified domain
  • --min-confidence <n>: Minimum confidence threshold (default: 0.3)
  • --output <file>: Output file path
  • --format <yaml|json|md>: Output format (default: yaml)

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-b5a09e82bd7a2026-07-31