session-loader
2
总安装量
2
周安装量
#71267
全站排名
安装命令
npx skills add https://github.com/davjdk/thermocalcbot --skill session-loader
Agent 安装分布
trae
1
claude-code
1
Skill 文档
Session Loader Skill
You load the feature specification and prepare the next implementation task at the start of each session.
When to Use This Skill
- User asks to “implement spec” or “ÑеализÑй ТД
- User asks to “continue work” or “пÑодолжи ÑабоÑÑ”
- Starting a new session after
/clear - User references a feature spec file
Workflow
Step 1: Identify Current Branch
git branch --show-current
If on master or main:
â ï¸ ÐÑ Ð½Ð°Ñ
одиÑеÑÑ Ð² заÑиÑÑнной веÑке: {branch}
ÐÐ»Ñ ÑеализаÑии ÑиÑи:
1. ÐапÑÑÑиÑе /plan Ð´Ð»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¢Ð Ð¸ веÑки
2. Ðли пеÑеклÑÑиÑеÑÑ Ð½Ð° ÑÑÑеÑÑвÑÑÑÑÑ feature-веÑкÑ:
git checkout feature/{name}
STOP â do not proceed.
Step 2: Find Spec File
Convert branch name to spec path:
{branch-name} â .ai/specs/{branch-name}.md
Examples:
feature/user-authâ.ai/specs/feature-user-auth.mdbugfix/123-fixâ.ai/specs/bugfix-123-fix.md
Check if file exists:
test -f .ai/specs/{branch-name}.md && echo "EXISTS" || echo "NOT FOUND"
If NOT FOUND:
â ТРне найдено Ð´Ð»Ñ Ð²ÐµÑки: {branch}
ÐжидаемÑй Ñайл: .ai/specs/{branch-name}.md
ÐейÑÑвиÑ:
1. ÐапÑÑÑиÑе /plan Ð´Ð»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¢Ð
2. Ðли ÑоздайÑе Ñайл вÑÑÑнÑÑ
STOP â do not proceed.
Step 3: Load and Parse Spec
Read the spec file and extract:
- Feature name â from title
- Current status â ð¡ Ð ÑабоÑе / â ÐавеÑÑÑн
- All stages â with their statuses
- Next incomplete stage â first with ⬠or ð
Step 4: Determine Next Task
Find the first stage that is:
- ⬠Ðе наÑаÑ, OR
- ð Ð ÑабоÑе (resume)
If all stages are â :
â
ÐÑе ÑÑÐ°Ð¿Ñ Ð·Ð°Ð²ÐµÑÑенÑ!
ФиÑа гоÑова к меÑжÑ.
ÐапÑÑÑиÑе: "merge в main" или иÑполÑзÑйÑе merge-helper
STOP â feature complete.
Step 5: Present Task to User
Output the session context:
ð ÐагÑÑжено ТÐ: .ai/specs/{branch-name}.md
ð¿ ÐеÑка: {branch-name}
âââââââââââââââââââââââââââââââââââââââââââââââââââ
ð ТÐÐУЩÐÐ ÐТÐÐ: {stage_number}. {stage_name}
âââââââââââââââââââââââââââââââââââââââââââââââââââ
**ЦелÑ:** {stage_goal}
**ÐадаÑи:**
- [ ] Task 1
- [ ] Task 2
- [ ] Task 3
**ФайлÑ:**
- `path/to/file1.py` (ÑоздаÑÑ)
- `path/to/file2.py` (измениÑÑ)
**ÐÑиÑеÑий пÑиÑмки:** {acceptance_criteria}
âââââââââââââââââââââââââââââââââââââââââââââââââââ
ð ÐÑогÑеÑÑ: {completed}/{total} ÑÑапов
[ââââââââââââââââ] {percent}%
ÐоÑов к ÑеализаÑии. ÐодÑвеÑдиÑе наÑало ÑабоÑÑ.
Step 6: Update Stage Status
When user confirms, update spec file:
- Change stage status: ⬠â ð
- Add timestamp to history table
Step 7: Execute Task
Implement the stage tasks:
- Create/modify files as specified
- Follow project conventions
- Write tests if required
- Keep changes â¤250 lines
Step 8: After Implementation
When stage is complete:
- Run tests:
uv run pytest - Use commit-helper for commit
- Update spec file:
- Change stage status: ð â â
- Check off completed tasks
- Add commit hash to history
Spec File Updates
Marking Stage In-Progress
### ÐÑап 2: Service Layer (~150 ÑÑÑок)
**СÑаÑÑÑ:** ð Ð ÑабоÑе â Changed from â¬
Marking Stage Complete
### ÐÑап 2: Service Layer (~150 ÑÑÑок)
**СÑаÑÑÑ:** â
ÐавеÑÑÑн â Changed from ð
**ÐадаÑи:**
- [x] Task 1 â Checked
- [x] Task 2 â Checked
History Entry
## ÐÑÑоÑÐ¸Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹
| ÐаÑа | ÐÑап | ÐÐ¾Ð¼Ð¼Ð¸Ñ | ÐпиÑание |
| ---------- | ---- | ------- | ------------------------- |
| 2026-01-07 | 2 | abc1234 | Service layer implemented | â New row |
| 2026-01-06 | 1 | def5678 | Models and schemas |
| 2026-01-06 | - | - | ТРÑоздано |
Error Handling
Branch Mismatch
If spec branch doesn’t match current branch:
â ï¸ ÐеÑооÑвеÑÑÑвие веÑок
ТекÑÑÐ°Ñ Ð²ÐµÑка: feature/other-feature
ТРвеÑка: feature/user-auth
ÐеÑеклÑÑиÑеÑÑ Ð½Ð° нÑжнÑÑ Ð²ÐµÑкÑ:
git checkout feature/user-auth
Spec Corruption
If spec file is malformed:
â ï¸ ÐÑибка паÑÑинга ТÐ
Файл .ai/specs/{branch}.md повÑеждÑн или Ð¸Ð¼ÐµÐµÑ Ð½ÐµÐ²ÐµÑнÑй ÑоÑмаÑ.
ÐÑовеÑÑÑе ÑÑÑÑкÑÑÑÑ Ñайла или ÑоздайÑе новÑй ÑеÑез /plan
References
See commit-helper for commit workflow. See plan-mode for spec creation.