Skills.MD
# Hive Workflow Skill
Hive is a local-first issue tracking system designed for AI agents. This skill provides best practices for effective cell management.
**NOTE:** For swarm workflows, combine this skill with `swarm-coordination` from global-skills/.
## Cell Types
| Type | When to Use |
| --------- | --------------------------------------- |
| `bug` | Something is broken and needs fixing |
| `feature` | New functionality to add |
| `task` | General work item |
| `chore` | Maintenance, refactoring, dependencies |
| `epic` | Large initiative with multiple subtasks |
## Creating Effective Cells
### Good Cell Titles
```text
- "Fix null pointer exception in UserService.getProfile()"
- "Add dark mode toggle to settings page"
- "Migrate auth tokens from localStorage to httpOnly cookies"
```
### Bad Cell Titles
```text
- "Fix bug" (too vague)
- "Make it better" (not actionable)
- "stuff" (meaningless)
```
### Cell Body Structure
```markdown
## Problem
[Clear description of the issue or need]
## Expected Behavior
[What should happen]
## Current Behavior
[What currently happens, for bugs]
## Proposed Solution
[How to fix/implement, if known]
## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
## Notes
[Any additional context, links, or constraints]
```
## Workflow States
```text
open → in_progress → closed
↓
blocked (optional)
```
### State Transitions
### Open → In Progress
```typescript
hive_update(id: "hv-abc123", state: "in_progress")
```
Use when you start working on a cell.
### In Progress → Closed
```typescript
hive_close(id: "hv-abc123", resolution: "Fixed in commit abc1234")
```
Use when work is complete.
### In Progress → Blocked
```typescript
hive_update(id: "hv-abc123", state: "blocked", body: "Blocked by #hv-xyz789")
```
Use when you can't proceed due to a dependency.
## Querying Cells
### Find Open Work
```typescript
hive_query(state: "open", type: "bug")
```
### Search by Keywords
```typescript
hive_query(search: "authentication")
```
### List Recent Activity
```typescript
hive_query(limit: 10, sort: "updated")
```
## Epic Management
Epics are containers for related work:
```markdown
---
type: epic
title: User Authentication Overhaul
---
## Objective
Modernize the authentication system
## Subtasks
- [ ] #hv-001: Implement OAuth2 provider
- [ ] #hv-002: Add MFA support
- [ ] #hv-003: Migrate session storage
- [ ] #hv-004: Update login UI
```
### Creating an Epic with Subtasks
1. Create the epic first:
```typescript
hive_create(type: "epic", title: "User Auth Overhaul", body: "...")
```
2. Create subtasks linked to the epic:
```typescript
hive_create(type: "task", title: "Implement OAuth2", parent: "epic-id")
```
## Best Practices
```text
1. **One cell per logical unit of work** - Don't combine unrelated fixes
2. **Update state promptly** - Keep cells reflecting reality
3. **Add context in body** - Future you will thank present you
4. **Link related cells** - Use `#hv-id` references
5. **Close with resolution** - Explain how it was resolved
6. **Use labels** - `priority:high`, `area:frontend`, etc.
```
## Sync and Collaboration
Cells sync with git:
- Changes tracked locally
- Use `hive_sync()` to commit and push to remote
## Integration with Swarm
When working in a swarm:
```text
1. Load `swarm-coordination` skill with `skills_use(name="swarm-coordination")`
2. Create epic with `hive_create_epic()` (atomic operation)
3. Coordinator assigns cells to worker agents
4. Workers load relevant skills based on subtask type
5. Close cells as subtasks complete
6. Close epic when all subtasks done
7. Sync with `hive_sync()` (MANDATORY at session end)
```
### Skill Recommendations for Common Cell Types
```text
- `type: "bug"` → Load `testing-patterns` for regression tests
- `type: "feature"` → Load `system-design` for architecture
- `type: "chore"` → Load `testing-patterns` if refactoring
- `type: "epic"` → Load `swarm-coordination` for decomposition
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「hive-workflow」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次