Contributing¶
We welcome contributions! Here's how to get started.
Git Workflow (GitHub Flow)¶
This project uses GitHub Flow — all changes go through pull requests to main.
For Contributors¶
- Fork the repository
- Sync your fork's
mainwith upstreamdevran-ai/kit - Create a feature branch from
main:git checkout -b feat/my-feature - Make your changes (small, focused commits)
- Run verification:
npm testand/verify - Push and open a PR against
main
For Maintainers¶
- Create a branch from
main: - Develop with conventional commits
- Push the branch:
git push -u origin feat/my-feature - Open PR against
main— CI runs automatically - Merge via GitHub (squash or merge commit)
- Delete the feature branch after merge
Branch Naming¶
| Type | Pattern | Example |
|---|---|---|
| Feature | feat/description | feat/agent-scheduling |
| Bug fix | fix/description | fix/circuit-breaker-reset |
| Refactor | refactor/description | refactor/immutable-state |
| Docs | docs/description | docs/telegram-guide |
| Chore | chore/description | chore/update-deps |
Branch Protection¶
mainis protected: no direct pushes, PRs requiredmaincannot be deleted or force-pushed- Feature branches are deleted after merge
Guidelines¶
Code Quality¶
- Follow existing patterns and conventions
- Use immutable data patterns (spread, filter, map — never mutate)
- Add structured logging to all catch blocks (
createLogger) - Validate all public function parameters
- Document complex logic with JSDoc
Commits¶
Use conventional commit format:
feat: add new mobile-patterns skill
fix: resolve agent routing issue
docs: update getting-started guide
Pull Requests¶
- Clear description of changes
- Reference any related issues
- Include verification results
- Update documentation if needed
Adding New Components¶
New Agent¶
- Create
.agent/agents/agent-name.md - Follow the agent template
- Add triggers and capabilities
- Test with relevant workflows
New Skill¶
- Create
.agent/skills/skill-name/SKILL.md - Document patterns and usage
- Include code examples
- Test activation keywords
New Command¶
- Create
.agent/commands/command-name.md - Document usage and examples
- Link to relevant agents/skills
- Test in development
New Workflow¶
- Create
.agent/workflows/workflow-name.md - Define step-by-step process
- Include verification steps
- Test complete lifecycle
Verification¶
Before submitting, run:
This checks:
- ✅ Build passes
- ✅ Lint passes
- ✅ Tests pass
- ✅ No security issues
Questions?¶
- Open an issue
- Check existing discussions
- Review the documentation