How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-aid:session-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are initializing a coding session.
You are initializing a coding session.
This skill provides clean session startup by:
Invoke this skill when:
/session-initCheck if .ai-session/STATE.md exists:
ls -la .ai-session/STATE.md
Two paths:
If .ai-session/STATE.md exists:
cat .ai-session/STATE.md
Output exactly in this format:
=== SESSION RESUMED ===
📋 TASK
[One-line task objective from checkpoint]
✅ COMPLETED
- [Done item 1]
- [Done item 2]
- [Done item 3]
⚠️ CURRENT BLOCKER
[Blocker description or "None - ready to proceed"]
▶️ NEXT ACTION
[Next action from checkpoint]
---
Resuming work now...
CRITICAL RULES:
✓ DO execute the NEXT ACTION immediately ✓ DO use context from FILES/CONTEXT section ✓ DO trust DONE items as completed ✓ DO avoid FAILED approaches
❌ DO NOT re-explain the checkpoint ❌ DO NOT ask clarifying questions unless NEXT ACTION is ambiguous ❌ DO NOT re-verify completed work in DONE ❌ DO NOT hallucinate prior work not in checkpoint ❌ DO NOT assume context missing from checkpoint
If NEXT ACTION is clear: Execute it immediately
If NEXT ACTION is ambiguous: Ask ONE specific clarifying question, then execute
If .ai-session/STATE.md does NOT exist:
=== NEW SESSION ===
No checkpoint found at .ai-session/STATE.md
Starting fresh session.
Ask the user:
What task would you like to work on?
Provide:
- Task objective
- Relevant context (files, issues, PRs, etc.)
- Any constraints or requirements
DO NOT:
DO:
After task definition (fresh start) or before major work (resumed session), offer:
Would you like me to create a checkpoint before starting?
This will save the current state to .ai-session/STATE.md for future resumption.
(You can also manually run /session-checkpoint anytime)
When resuming from checkpoint, validate structure:
Required sections:
Optional sections:
If checkpoint is malformed:
⚠️ WARNING: Checkpoint found but malformed
The checkpoint at .ai-session/STATE.md is missing required sections.
Options:
1. Provide task description to start fresh
2. Fix checkpoint manually and re-run /session-init
3. View checkpoint: cat .ai-session/STATE.md
What you CAN assume from checkpoint:
What you CANNOT assume:
Golden Rule: If it's not in the checkpoint, it doesn't exist.
Checkpoint exists at .ai-session/STATE.md:
# TASK
Debug pod crash loop in namespace openshift-ovn-kubernetes
# DONE
- Identified crashlooping pod: ovnkube-node-abc123
- Extracted logs showing "certificate has expired"
- Verified root cause is token expiration
# CURRENT BLOCKER
None - ready to implement fix
# NEXT ACTION
Edit DaemonSet manifest to add projected service account token volume with 1h TTL
# FILES / CONTEXT
- DaemonSet: deployments/ovnkube-node.yaml
- Namespace: openshift-ovn-kubernetes
Skill output:
=== SESSION RESUMED ===
📋 TASK
Debug pod crash loop in namespace openshift-ovn-kubernetes
✅ COMPLETED
- Identified crashlooping pod: ovnkube-node-abc123
- Extracted logs showing "certificate has expired"
- Verified root cause is token expiration
⚠️ CURRENT BLOCKER
None - ready to implement fix
▶️ NEXT ACTION
Edit DaemonSet manifest to add projected service account token volume with 1h TTL
---
Resuming work now...
Then immediately:
deployments/ovnkube-node.yamlNo checkpoint exists:
Skill output:
=== NEW SESSION ===
No checkpoint found at .ai-session/STATE.md
Starting fresh session.
What task would you like to work on?
Provide:
- Task objective
- Relevant context (files, issues, PRs, etc.)
- Any constraints or requirements
User responds: "Fix the failing unit tests in pkg/controller/pod_controller_test.go"
Skill continues:
Got it. Task objective: Fix failing unit tests in pkg/controller/pod_controller_test.go
Let me start by examining the test file and running the tests to see the failures.
Checkpoint exists but missing NEXT ACTION:
Skill output:
⚠️ WARNING: Checkpoint found but malformed
The checkpoint at .ai-session/STATE.md is missing required section: NEXT ACTION
Options:
1. Provide task description to start fresh
2. Fix checkpoint manually and re-run /session-init
3. View checkpoint: cat .ai-session/STATE.md
What would you like to do?
Session lifecycle:
/session-init (this skill)/session-checkpoint to save state/session-checkpoint before logging off/session-init loads checkpoint/session-postmortem to extract knowledgeWorkflow:
Day 1:
- /session-init (fresh start)
- Work on task
- /session-checkpoint (save before lunch)
- /session-init (resume after lunch)
- /session-checkpoint (save at end of day)
Day 2:
- /session-init (resume from yesterday)
- Complete task
- /session-postmortem (extract learnings)
Checkpoint read error:
❌ ERROR: Cannot read checkpoint
File exists at .ai-session/STATE.md but cannot be read.
Error: [error message]
Please check file permissions or provide task description to start fresh.
Ambiguous NEXT ACTION:
⚠️ NEXT ACTION is ambiguous
Checkpoint says: "Fix the bug"
This is too vague to execute. Can you clarify:
- Which bug? (file, line, error message)
- What approach to use?
Before resuming from checkpoint, verify:
Before starting fresh, verify:
This skill is an entry point, not the work itself.
Your job:
DO NOT:
DO:
Session initialization should take < 10 seconds of user time.
Be fast, be direct, be ready to work.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub wangke19/my-claude-skills --plugin cc-aid