OpenPersona secondme-skill
A complete pipeline to build your AI Second Me: distill your identity from personal data, grow a private knowledge base, train a local model, and govern what gets shared.
install
source · Clone the upstream repo
git clone https://github.com/acnlabs/OpenPersona
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/acnlabs/OpenPersona "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/secondme-skill" ~/.claude/skills/acnlabs-openpersona-secondme-skill && rm -rf "$T"
manifest:
skills/secondme-skill/SKILL.mdsource content
secondme-skill
secondme-skill is a complete pipeline for building your AI Second Me — distill your identity from owned data, grow a private knowledge base, train a local model that speaks like you, and govern what gets shared. Local-first, privacy-first, fully yours.
This is an orchestration skill package. It does not replace lower-level capabilities.
Source of truth
- Persona source declaration:
persona.json - Pipeline runtime state:
state/pipeline-state.json - Product and governance spec:
references/product-report.md - Generated runtime pack:
generated/persona-secondme-skill/ - Regeneration script:
scripts/regenerate-pack.sh
Dependency chain
- Foundation:
-> persona pack creation and lifecycle baselineopenpersona - Orchestration:
-> workflow gates, state, and report contractssecondme-skill - Capability chain:
-> identity extraction and evidence gradinganyone-skill
-> data ingestion, deduplication, wiki/KG, versioned exportpersona-knowledge
-> local training, evaluation, export, integrationpersona-model-trainer
Required execution policy
- Use non-interactive generation and scripts where possible.
- Keep local-first and least-privilege defaults.
- Keep stage outputs auditable with version/hash references.
- Treat
as generated output (read-only baseline).persona-secondme-skill/ - When
changes, regenerate the runtime pack before release.persona.json - Before publishing outside this repository, run
.scripts/publish-check.sh - Preferred release check path:
(regenerate + sync + model gate + publish gate).scripts/run-gates.sh
Stage contract
init
- Validate toolchain and directories.
- Initialize or load
.state/pipeline-state.json
ingest
- Ingest user-owned data with PII scanning.
- Require explicit source authorization from user.
distill
- Build structured persona extraction artifacts.
- Ensure minimum persona input for OpenPersona is complete.
train
- Route by hardware tier:
- Apple Silicon:
mlx - NVIDIA:
unsloth - No local GPU:
colab
- Apple Silicon:
eval
- Check thresholds:
voice_score >= 3.5probe_score >= 0.8
degradation <= 20% vs last viable versionperplexity
integrate
- Integrate model artifacts only when eval gate passes.
- Require runtime pack persona model integration before marking stage pass.
report
- Emit three reports under
,reports/data
,reports/model
.reports/deploy - Keep
and deployment recommendation in blocked state if persona model gate fails.report
Failure routing
- Data gate fail -> return to
and request source expansion.ingest - Train fail -> change backend or reduce model size.
- Eval fail -> augment data or retune hyperparameters, then retrain.
Always update
error_code, last_error, and retry_count in pipeline state before retry.
Human approval gates
Require explicit human approval for:
- financial/legal commitments
- account-changing write actions
- external publishing/sharing of identity artifacts
Persona model gate
secondme requires trained persona model integration, not only host default model fallback.
Pass criteria:
containsgenerated/persona-secondme-skill/persona.json
.body.runtime.models
has at least one model entry.body.runtime.models
returns success.scripts/check-model-integration.sh
If this gate fails,
report must not be marked pass and deployment recommendation remains blocked.
Sync discipline
- Edit root
and orchestration docs first.persona.json - Run
.scripts/regenerate-pack.sh - Run
to validate root and generated pack alignment.scripts/check-sync.sh - Verify runtime pack path
exists and updated.generated/persona-secondme-skill/ - Only then produce release reports under
.reports/