원클릭으로
ks-help
Keystone first-run entry. Use it for onboarding, scenario triage, and choosing the next skill without replacing orchestrate.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Keystone first-run entry. Use it for onboarding, scenario triage, and choosing the next skill without replacing orchestrate.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Lightweight task compressor. Turn messy input into a one-page brief that can route to roundtable or writing-plan without replacing direction decisions.
Formal quality gate with multi-persona review, confidence thresholds, and QA routing based on fresh verification evidence.
Direction convergence skill. Use brainstorm, align, or challenge mode to turn messy questions or existing proposals into a clear directional decision.
Use this when direction is already clear and the next job is to compress it into an executable block with scope, done criteria, and routing.
Fast failure classifier. Decide whether the problem is a spec gap, an implementation bug, or a rollback candidate before routing to writing-plan, diagnose, or ship.
Use this when the system is broken, tests are failing, or behavior is abnormal and the root cause is still unknown. No investigation, no fix.
| name | ks-help |
| description | Keystone first-run entry. Use it for onboarding, scenario triage, and choosing the next skill without replacing orchestrate. |
| layer | support |
| owner | help |
| inputs | ["task_description","context"] |
| outputs | ["entry_recommendation","suggested_skill"] |
| entry_modes | ["from-scratch","aligned-offline","plan-ready","build-ready","release-ready","incident"] |
Preamble: see templates/preamble.md
Keystone's entry point. One job: give the user one copy-ready next sentence.
Responsible for: recommending one skill, giving a copy-ready prompt. Not responsible for: deciding entry_mode, mutating workflow state, replacing orchestrate.
Check if this is the user's first time. state init already created flag files and set defaults. This step only prints the intro message once.
_KS_CLI="${KEYSTONE_CLI:-./keystone}"
_FIRST_RUN=$($_KS_CLI state get first_run_complete 2>/dev/null | tr -d '"')
if [ "$_FIRST_RUN" != "true" ]; then
$_KS_CLI state set first_run_complete true >/dev/null 2>&1 || true
echo "=== First Run ==="
echo "Keystone: flexible entry, honest exit."
echo "You can finish your first real task in about 5 minutes."
echo "Quickstart: docs/quickstart.md"
echo ""
echo "Telemetry is off by default. Change with:"
echo " ./keystone state set telemetry_consent community"
echo " ./keystone state set telemetry_consent anonymous"
echo " ./keystone state set telemetry_consent off"
echo ""
fi
Read the user's input and classify:
| if | then |
|---|---|
| User explicitly named a skill | route directly to that skill |
| User described a clear stage | route to the matching skill from the table below |
| User's real problem is direction convergence | recommend roundtable |
| User is unsure which skill to use | default to orchestrate |
| User said "I just installed" or no state file exists | treat as first-time, offer quickstart |
Decision rule: recommend exactly one primary entry. A list of three "maybe" options is not a recommendation.
| Current situation | Recommended skill | Copy-ready prompt |
|---|---|---|
| Completely unsure where to begin | orchestrate | /ks-orchestrate Route this task from the correct entry mode and push it to the smallest safe next step. |
| Direction is still messy and needs convergence | roundtable | /ks-roundtable The direction is still unclear. Help me converge what to do and what not to do before formal planning. |
| Direction is clear, needs a current block | writing-plan | /ks-writing-plan The direction is decided. Turn it into one executable block with done criteria. |
| Behavior must be locked before implementation | test-first | /ks-test-first Define failing checks that lock the behavior boundary before implementation begins. |
| The block is clear, work should begin now | implement | /ks-implement Execute the current block without expanding scope. |
| Code exists, needs fresh evidence | verify | /ks-verify Collect fresh evidence for the current change before claiming it is ready for review. |
| Something is broken, cause is unclear | diagnose | /ks-diagnose Investigate the root cause before attempting a fix. |
| A bug showed up, type is unclear | bug-triage | /ks-bug-triage Classify this failure as spec gap, implementation bug, or rollback candidate. |
| Formal quality gate is needed | review | /ks-review Run the formal quality gate using fresh verification evidence. |
| Runtime validation is needed | qa | /ks-qa Run real browser or runtime validation for critical user paths. |
| Delivery or release closeout | ship / release | /ks-ship Close out delivery with final checks. |
| PR closeout context is needed | pr-prep | /ks-pr-prep Package the change into reviewer-ready PR context. |
| Need to pause or resume later | handoff | /ks-handoff Freeze the current context for later recovery. |
## Help Recommendation
**Current read**: [one sentence]
**Recommended entry**: `skill-name`
**Why**: [one sentence]
---
**Copy this and send it next:**
> [full copy-ready prompt from the table above]
---
The copy-ready prompt must appear inside a > quote block so the user can spot it immediately.
Once the recommendation is output, stop. Let the downstream skill do the work. Help does not keep routing ownership.
If the user says /ks-review or "I need a review", route directly to that skill. Do not force them back through the recommendation table.
If no .keystone/state.json exists and the user has not described a task, append:
---
**New here?** You can finish a real task in about 5 minutes. Read `docs/quickstart.md` or run:
> /ks-orchestrate Route this task from the correct entry mode and push it to the smallest safe next step.
---
Show the full scenario table from Step 3. This is the only case where help shows more than one recommendation.
decision: help-guided confidence: 0.9 rationale: One executable entry recommended based on the user's current situation. Help only handles onboarding and scenario triage; it does not replace formal routing. fallback: If help cannot reliably determine the stage, default to orchestrate. escalate: false next_skill: orchestrate next_action: Enter the recommended skill using the copy-ready prompt.
_KS_CLI="${KEYSTONE_CLI:-./keystone}"
$_KS_CLI state set last_decision "help-guided" >/dev/null 2>&1 || true
$_KS_CLI state set artifacts.last_help_recommendation "${SUGGESTED_SKILL:-orchestrate}" >/dev/null 2>&1 || true
mkdir -p .keystone/telemetry/events
echo "{\"skill\":\"help\",\"ts\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\",\"decision\":\"help-guided\",\"next_skill\":\"${SUGGESTED_SKILL:-orchestrate}\",\"first_run\":$([ -f .keystone/.first-run ] && [ "$(find .keystone/.first-run -mmin +0 2>/dev/null)" != "" ] && echo false || echo true)}" >> .keystone/telemetry/events/$(date +%Y-%m).jsonl