detect-personas
Detect whether a project needs project-specific personas or stakeholder stand-ins, propose them, materialise them as first-class /sudo targets, and record the decision.
- License 许可
- MIT
- 最近更新
- 2026-08-08
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- detect-personas
- description
- Detect whether a project needs project-specific personas or stakeholder stand-ins, propose them, materialise them as first-class /sudo targets, and record the decision.
03 SKILL.md 正文
Detect Personas
Purpose
Identify whether a specialised project benefits from additional persistent team roles or stakeholder stand-ins beyond the template defaults (product-owner, architect, tech-lead, domain-expert, knowledge-curator).
Personas make user value, regulatory, operational, or accessibility concerns
first-class during /sudo, ideation, review and acceptance.
Trigger
Run during /specialise, after calibrate-audience and before architecture
recommendation, when:
CUSTOMIZE_THIS_PROJECT.toonor narrative intake contains user, stakeholder, regulatory, compliance, accessibility or operational references.- The app shape or domain implies distinct actor viewpoints (e.g. patient + clinician, rider + dispatcher, player + moderator).
- The project profile records a
compliance,security,operations, orux_accessibilityconcern as material.
Procedure
-
Inspect evidence:
CUSTOMIZE_THIS_PROJECT.toon.narrativespecs/capabilities/(if narrative intake produced them)PROJECT_PROFILE.toon.unknowns(look for compliance, privacy, ops, UX)PROJECT_PROFILE.toon.audience.app_shapeandlanguage_by_role- Any prior
knowledge/risks/orknowledge/domains/entries.
-
Classify persona need:
- None needed — the template defaults plus subagents cover all foreseeable perspectives. Record this explicitly.
- Inferable from evidence — the narrative strongly implies one or more
personas (e.g. "healthcare app" implies
compliance-officerandend-user/patient). Propose them with defaults. - Ambiguous — evidence hints at stakeholders but does not specify them. Ask the smallest useful question set.
-
If personas are needed, for each propose:
name— kebab-case file name (e.g.compliance-officer,end-user-novice,on-call-sre).purpose— one line.responsibility— what this persona protects or advocates for.questions_owned— what this persona asks at hard choices.invoke_when— task types that benefit from this perspective.do_not_invoke_when— guard against misuse.
-
Materialise personas:
- Write each persona to
.agents/team/<name>.mdusing the persona template. - Ensure the file follows the same structure as existing team roles
(
product-owner,architect,tech-lead). - Update
.agents/team/README.mdto list the new personas under a "Project-specific personas" heading.
- Write each persona to
-
Record the decision in
PROJECT_PROFILE.toon:personas: detected_by: detect-personas materialised: - name: compliance-officer reason: healthcare domain requires regulatory viewpoint explicitly_none: false revisit_when: - domain changes materially - new compliance regime introduced -
Update
sudoskill awareness:- No file change needed in
.agents/skills/coordination/sudo/SKILL.md; it already reads.agents/team/<persona>.mddynamically. - Ensure the new persona names appear in
sudodocumentation if the skill is updated in the same change.
- No file change needed in
Do not
- Create personas when evidence is absent and the user declines.
- Create more than five project-specific personas in a single
/specialise; prefer the most material two or three and defer the rest with arevisit_whentrigger. - Merge stakeholder stand-ins into the generic subagent set; persistent
project roles belong in
.agents/team/. - Leave personas as abstract mentions in
PROJECT_PROFILE.toonwithout materialised definition files.
Persona template
# <Persona Name>
## Purpose
<One-line purpose: what this persona protects or advocates for.>
## Responsibility
- <Responsibility 1>
- <Responsibility 2>
## Questions owned
- <Question this persona asks at hard choices 1>
- <Question this persona asks at hard choices 2>
## Inputs
<What this persona needs to be effective.>
## Outputs
<What this persona produces.>
## Non-responsibilities
<What this persona does not own, to avoid scope creep or concensus forcing.>
## Invoke when
<Specific task types or decision points.>
## Do not invoke when
<Guardrails against misuse.>
## Efficiency
<Model class or context-packet guidance.>
Output
- Zero or more new
.agents/team/<name>.mdfiles. - Updated
.agents/team/README.md. - Updated
PROJECT_PROFILE.toon.personasmap.
04 同仓库更多 Skills
agentic-template
Start or continue work in this repository using the canonical AGENTS.md contract and repository skill catalog.
wiki-tidy
Reconcile the wiki against the knowledge graph, specs and code; prune stale, keep links resolving.
update-handoff
Update HANDOFF.toon with current semantic work state.
test-first
Drive meaningful behaviour changes with the smallest useful failing test.
test-change
Select and run tests that prove a change at suitable fidelity.
specify
Create proportional OpenSpec-shaped structured change proposals for meaningful changes.