spec-update
БесплатноБез исполняемых скриптовНе проверенUse when updating specifications, comparing branches, or ensuring documentation reflects current implementation.
от CongDon1207★ 18 звёзд на GitHubОб этом скилле
Specification Update Workflow
When to Use This Skill
- Syncing specs with implementation
- Branch comparison analysis
- Post-implementation documentation update
- Feature spec verification
Pre-Flight Checklist
- Identify specification files to update
- Determine implementation changes
- Compare current state vs documented state
- Plan update strategy
Phase 1: Change Discovery
Git-Based Discovery
# Compare branches
git diff main..feature-branch --name-only
# Get detailed diff
git diff main..feature-branch
# List commits with messages
git log main..feature-branch --oneline
# Find files changed since date
git log --since="2024-01-01" --name-only --oneline
Pattern-Based Discovery
# Find all spec files
find . -name "*.spec.md" -o -name "*-specification.md"
# Find implementation files
grep -r "class.*Command" --include="*.cs" -l
# Cross-reference
grep -r "SaveEmployee" --include="*.md" # In specs
grep -r "SaveEmployee" --include="*.cs" # In code
Phase 2: Gap Analysis
Create Analysis Document
# Specification Gap Analysis
## Date: [Date]
## Feature: [Feature Name]
## Implementation Status
| Component | Specified | Implemented | Gap |
|-----------|-----------|-------------|-----|
| Entity: Employee | ✅ | ✅ | None |
| Command: SaveEmployee | ✅ | ✅ | Missing validation doc |
| Query: GetEmployeeList | ✅ | ✅ | Filters not documented |
| Event: OnEmployeeCreated | ❌ | ✅ | Not in spec |
## New Implementations (Not in Spec)
1. `BulkUpdateEmployeeCommand` - Added in PR #123
2. `EmployeeExportQuery` - Added for reporting
## Spec Items Not Implemented
1. `EmployeeArchiveCommand` - Deferred to Phase 2
2. `EmployeeAuditTrail` - Pending requirements
## Documentation Updates Needed
1. Add BulkUpdateEmployeeCommand to spec
2. Document new query filters
3. Add event handler documentation
Phase 3: Specification Update
Update Checklist
## Specification Updates
### Entities
- [ ] Update property list
- [ ] Document new computed properties
- [ ] Add validation rules
- [ ] Update relationships
### Commands
- [ ] Add new commands
- [ ] Update validation rules
- [ ] Document side effects
- [ ] Add error codes
### Queries
- [ ] Document new filters
- [ ] Update response schema
- [ ] Add pagination details
### Events
- [ ] Document entity events
- [ ] List event handlers
- [ ] Describe cross-service effects
### API Endpoints
- [ ] Add new endpoints
- [ ] Update request/response
- [ ] Document auth requirements
Pattern 1: Entity Specification Update
# Employee Entity Specification
## Properties
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| Id | string | Yes | Unique identifier (ULID) |
| FullName | string | Yes | Employee full name (max 200) |
| Email | string | Yes | Email address (unique per company) |
| Status | EmployeeStatus | Yes | Current employment status |
| PhoneNumber | string | No | Contact phone (NEW in v2.1) |
## Computed Properties
| Property | Calculation |
|----------|-------------|
| IsActive | Status == Active && !IsDeleted |
| DisplayName | `{Code} - {FullName}` |
## Validation Rules
1. FullName: Required, max 200 characters
2. Email: Required, valid email format, unique within company
3. PhoneNumber: Optional, valid phone format (NEW in v2.1)
## Static Expressions
| Expression | Purpose |
|------------|---------|
| UniqueExpr(companyId, userId) | Find unique employee |
| ActiveInCompanyExpr(companyId) | Filter active employees |
| SearchExpr(term) | Full-text search |
Pattern 2: Command Specification Update
# SaveEmployeeCommand Specification
## Overview
Creates or updates an employee record.
## Request
```json
{
"id": "string | null",
"fullName": "string",
"email": "string",
"status": "Active | Inactive | Terminated",
"phoneNumber": "string | null"
}
Validation
| Field | Rule | Error Code |
|---|---|---|
| fullName | Required | EMPLOYEE_NAME_REQUIRED |
| fullName | Max 200 chars | EMPLOYEE_NAME_TOO_LONG |
| Required | EMPLOYEE_EMAIL_REQUIRED | |
| Valid format | EMPLOYEE_EMAIL_INVALID | |
| Unique in company | EMPLOYEE_EMAIL_EXISTS |
Response
{
"employee": {
"id": "string",
"fullName": "string",
"email": "string",
"status": "string"
}
}
Side Effects
- Entity Event:
PlatformCqrsEntityEvent<Employee>raised - Cross-Service Sync: Employee synced to other services
- Notification: Welcome email sent (create only)
Error Codes
| Code | HTTP | Description |
|---|---|---|
| EMPLOYEE_NOT_FOUND | 404 | Employee ID not found |
| EMPLOYEE_EMAIL_EXISTS | 400 | Email already in use |
| EMPLOYEE_VALIDATION_FAILED | 400 | Validation error |
## Pattern 3: API Endpoint Specification
```markdown
# Employee API Endpoints
## Base URL
`/api/Employee`
## Endpoints
### GET /api/E
Установить spec-update в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGrepGlobBashTaskFAQ
Что делает скилл spec-update?
Use when updating specifications, comparing branches, or ensuring documentation reflects current implementation.
Как установить скилл spec-update?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-update запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic