KeiSeiKit-1.0/skills/sleep-on-it/phase-2-type.md
Parfii-bot 0be354a920 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

1.9 KiB

Phase 2 — Task type (click)

Map the free-text task to one of five dispatch categories. The remote agent's Phase A uses this to pick the right tool chain.

2a — Click

Emit ONE AskUserQuestion:

{
  "questions": [
    {
      "question": "How should the nightly agent approach this task?",
      "header": "Type",
      "multiSelect": false,
      "options": [
        {
          "label": "Deep research",
          "description": "WebSearch + WebFetch + synthesis — 3+ searches, 2+ page fetches, structured report"
        },
        {
          "label": "Pipeline design",
          "description": "Architect + critic sequence — 5-7 phases with verify-criteria and tradeoffs"
        },
        {
          "label": "Pattern analysis",
          "description": "Query kei-memory + past reports — extract trends across sessions, propose action"
        },
        {
          "label": "Comparative study",
          "description": "Pros/cons matrix across N options the user lists — weighted recommendation"
        },
        {
          "label": "Custom",
          "description": "Follow the task text verbatim — no dispatch tool, free-form response"
        }
      ]
    }
  ]
}

2b — Normalise

Map the clicked label to a compact token the queue file stores:

Label Token
Deep research deep
Pipeline design pipeline
Pattern analysis pattern
Comparative study compare
Custom custom

Store as TASK_TYPE.

2c — Soft nudge on mismatch

If TASK_TYPE == "custom" AND TASK_TEXT contains any of should I | compare | trade[- ]off | which is better, print a soft hint:

Your task text looks like a comparison — compare or deep usually produce a stronger result than custom. Proceeding anyway.

Do NOT re-ask. One nudge, user keeps control.

Verify-criterion

  • TASK_TYPE ∈ {deep, pipeline, pattern, compare, custom}.
  • Exactly ONE AskUserQuestion in this phase.