Building better AI agent workflows together.
Thank you for your interest in contributing! This guide helps you contribute effectively to this AI agent template.
# Fork and clone git clone https://github.com/d-oit/do-knowledge-studio.git cd do-knowledge-studio # Setup skills symlinks ./scripts/setup-skills.sh # Install git hooks (pre-commit + commit-msg) ./scripts/install-hooks.sh
- Check existing issues for open tasks
- Look for labels like
good first issue,help wanted, orpriority: high - Create a new issue if you found a bug or have a feature idea
git checkout -b feature/your-feature-name
# or
git checkout -b fix/issue-123-bug-descriptionBranch naming conventions:
feature/description- New featuresfix/description- Bug fixesdocs/description- Documentation updatesrefactor/description- Code refactoringtest/description- Test additionschore/description- Maintenance tasks
Before coding:
- Read
AGENTS.mdfor project standards - Check
agents-docs/AVAILABLE_SKILLS.mdfor skill authoring - Review
agents-docs/HARNESS.mdfor architecture
While coding:
- Follow the code style in
AGENTS.md - Keep files under 500 lines (split if needed)
- Write descriptive commit messages (see below)
- Run
./scripts/quality_gate.shbefore committing
Use Conventional Commits format. Note: Conventional Commits are enforced via CI.
type(scope): Brief description (50 chars max)
- Why this change was necessary
- What problem it solves
- Reference issue numbers if applicable
Types:
feat: New user-facing featurefix: Bug fixdocs: Documentation changesrefactor: Code restructuring (no user impact)perf: Performance improvementstest: Test additions/changeschore: Build/dependency updates
Examples:
feat(skills): Add web-doc-resolver skill for documentation fetching
Users needed reliable documentation access without manual searches.
This skill provides automatic doc resolution with fallback chain.
Fixes #45
fix(workflows): Update action versions to stable releases
actions/checkout@v5 doesn't exist yet, causing CI failures.
Updated to checkout@v4 and setup-python@v5 for reliability.
# Use the verification entry point (recommended) ./scripts/verify.sh # Or the minimal quality gate for quick local checks ./scripts/minimal_quality_gate.sh # Run full quality gate directly ./scripts/quality_gate.sh # Or skip tests for quick check SKIP_TESTS=true ./scripts/quality_gate.sh
To debug CI workflows locally before pushing, you can use act:
# List all available jobs act -l # Run a specific job (e.g., quality-gate) act -j quality-gate
Quality gate checks:
- ✓ Skill symlinks intact
- ✓ Shell scripts pass ShellCheck
- ✓ Markdown passes markdownlint
- ✓ YAML syntax valid
- ✓ Tests pass (if not skipped)
- Push your branch:
git push origin feature/your-feature - Open a PR on GitHub
- Fill out the PR template
- Link related issues (e.g.,
Fixes #123) - Wait for review and address feedback
PR Checklist:
- Branch is up to date with main
- Quality gate passes
- Commit messages follow conventions
- Tests added/updated (if applicable)
- Documentation updated (if applicable)
- No unintended whitespace or debug code
Documentation:
- Fix typos or clarify unclear sections
- Add examples to skills
- Improve quick start guide
- Translate documentation
Skills:
- Add new skill for common workflows
- Improve existing skill instructions
- Add skill scripts or templates
Scripts:
- Enhance quality gate with new checks
- Add utility scripts for common tasks
- Improve error messages in scripts
Workflows:
- Add new GitHub Actions workflows
- Improve CI/CD efficiency
- Add label automation
Sub-agents:
- Create new specialized sub-agents
- Improve agent coordination patterns
- Add agent templates
Hooks:
- Add new verification hooks
- Improve hook performance
- Add context-efficient validation
Architecture:
- Propose harness improvements
- Add context management patterns
- Optimize skill loading
See AGENTS.md for complete style guide. Key points:
Shell Scripts:
- Use
shellcheckfor linting - Use
batsfor testing - Exit codes: 0 = success, 2 = errors surfaced
Markdown:
- Use
markdownlintfor consistency - Heading hierarchy: H1 → H2 → H3 (no skipping)
- Code blocks with language tags
YAML:
- 2-space indentation
- Use
yamllintfor validation - Consistent key ordering
Documentation:
- Human-written (never auto-generated)
- Progressive disclosure (simple → complex)
- Include concrete examples
# Run all tests ./scripts/quality_gate.sh # Run specific test types SKIP_TESTS=true ./scripts/quality_gate.sh # Skip tests # Validate skills only ./scripts/validate-skills.sh
When updating documentation:
- Keep
AGENTS.mdunder 150 lines (use progressive disclosure) - Put detailed content in
agents-docs/ - Update
CHANGELOG.mdfor user-facing changes - Update
README.mdfor feature additions
Documentation structure:
AGENTS.md (single source of truth, concise)
├── agents-docs/ (detailed reference docs)
│ ├── HARNESS.md
│ ├── AVAILABLE_SKILLS.md
│ ├── SUB-AGENTS.md
│ ├── HOOKS.md
│ └── CONTEXT.md
└── skills/ (progressive disclosure)
└── <skill>/SKILL.md (≤250 lines)
Labels help organize issues and PRs:
| Label | Purpose |
|---|---|
bug |
Something isn't working |
feature |
New feature request |
documentation |
Documentation improvements |
good first issue |
Good for newcomers |
help wanted |
Extra attention needed |
priority: high |
Critical, needs attention |
status: needs review |
Waiting for review |
deps |
Dependency updates |
- General questions: Start a discussion
- Bugs: Open an issue
- Chat: Check if there's a community chat link in README
Every contribution makes AI agent workflows better. Whether it's a typo fix or a major feature, your help is appreciated! 🎉
Ready to contribute? Check out good first issues to get started!
The default pnpm test profile runs 100 cases per property for sync,
cross-tab, migration, and hydration behavior. It uses a fixed default seed;
failed properties print the seed and shrink path.
Run the expanded property profile:
pnpm run test:properties:nightly
Replay a failure with the seed and shrink path reported by fast-check:
FAST_CHECK_SEED='<reported-seed>' \ FAST_CHECK_PATH='<reported-path>' \ pnpm exec vitest run '<test-file>'
Set only the seed to explore a different counterexample path for the same
generated input sequence. FAST_CHECK_PROFILE=nightly selects the 2,000-case
profile; the normal test profile stays bounded.
Run the configured Stryker scope and aggregate score check locally:
pnpm run test:mutation
The Property and Mutation Tests workflow runs nightly and on demand through
GitHub Actions workflow_dispatch. It tests 13 source modules in separate
mutation shards, then enforces the 60% aggregate score floor. The
property-mutation-results artifact contains the reports and run logs. Review
every surviving tombstone or causality mutant; add a regression test or record
an evidence-based explanation in
plans/194-open-issues-1050-1065-ordered-implementation-2026-11-03.md.
Further reading: fast-check Vitest guide, fast-check configuration guide, Stryker Vitest runner, and GitHub Actions workflow syntax.