GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — do-knowledge-studio/CONTRIBUTING.md at main · d-oit/do-knowledge-studio

Expand file tree

/

CONTRIBUTING.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
325 lines (242 loc) · 8.81 KB
/

CONTRIBUTING.md

Copy path

File metadata and controls

325 lines (242 loc) · 8.81 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Contributing

Building better AI agent workflows together.

PRs Welcome License: MIT

Thank you for your interest in contributing! This guide helps you contribute effectively to this AI agent template.

Quick Start

# 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

How to Contribute

1. Find or Create an Issue

  • Check existing issues for open tasks
  • Look for labels like good first issue, help wanted, or priority: high
  • Create a new issue if you found a bug or have a feature idea

2. Create a Feature Branch

git checkout -b feature/your-feature-name
# or
git checkout -b fix/issue-123-bug-description

Branch naming conventions:

  • feature/description - New features
  • fix/description - Bug fixes
  • docs/description - Documentation updates
  • refactor/description - Code refactoring
  • test/description - Test additions
  • chore/description - Maintenance tasks

3. Make Your Changes

Before coding:

  • Read AGENTS.md for project standards
  • Check agents-docs/AVAILABLE_SKILLS.md for skill authoring
  • Review agents-docs/HARNESS.md for 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.sh before committing

4. Write Commit Messages

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 feature
  • fix: Bug fix
  • docs: Documentation changes
  • refactor: Code restructuring (no user impact)
  • perf: Performance improvements
  • test: Test additions/changes
  • chore: 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.

5. Run Quality Gate

# 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

Local GitHub Actions Rehearsal

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)

6. Submit a Pull Request

  1. Push your branch: git push origin feature/your-feature
  2. Open a PR on GitHub
  3. Fill out the PR template
  4. Link related issues (e.g., Fixes #123)
  5. 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

What to Contribute

Good First Contributions

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

Advanced Contributions

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

Code Style

See AGENTS.md for complete style guide. Key points:

Shell Scripts:

  • Use shellcheck for linting
  • Use bats for testing
  • Exit codes: 0 = success, 2 = errors surfaced

Markdown:

  • Use markdownlint for consistency
  • Heading hierarchy: H1 → H2 → H3 (no skipping)
  • Code blocks with language tags

YAML:

  • 2-space indentation
  • Use yamllint for validation
  • Consistent key ordering

Documentation:

  • Human-written (never auto-generated)
  • Progressive disclosure (simple → complex)
  • Include concrete examples

Testing

# 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

Documentation Updates

When updating documentation:

  • Keep AGENTS.md under 150 lines (use progressive disclosure)
  • Put detailed content in agents-docs/
  • Update CHANGELOG.md for user-facing changes
  • Update README.md for 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

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

Questions?

  • General questions: Start a discussion
  • Bugs: Open an issue
  • Chat: Check if there's a community chat link in README

Thank You!

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!

Property and Mutation Testing

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.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.