Thank you for your interest in contributing to Context Hub! This guide covers both code contributions and documentation/skill contributions.
- Node.js >= 18.0.0
- npm (comes with Node.js)
git clone https://github.com/andrewyng/context-hub.git
cd context-hub
npm installnode cli/bin/chub --help
node cli/bin/chub build content/ --validate-onlycd cli
npm test # run all tests
npm run test:watch # watch mode
npm run test:coverage # with coverage- Fork the repo and create a branch from
main - Make your changes
- Add or update tests as needed
- Ensure all tests pass:
cd cli && npm test - Validate the build:
node cli/bin/chub build content/ --validate-only - Submit a pull request
- ES modules (
import/export, notrequire) - No build step — native Node.js ES modules
- Minimal dependencies — prefer Node.js built-ins
- Dual-mode output: every command supports
--jsonfor machine-readable output
cli/
bin/chub # Executable entry point
src/
index.js # CLI setup (Commander)
commands/ # Command implementations
lib/ # Core utilities
tests/ # Vitest tests
content/ # Public content registry source
docs/ # Design docs
Context Hub is only as useful as its content. Contributing curated documentation or skills is one of the most impactful ways to help.
- Create a directory under
<author>/docs/<name>/ - Add a
DOC.mdwith YAML frontmatter:
---
name: my-api
description: Short description of what this doc covers
metadata:
languages: "python,javascript"
versions: "1.0.0"
source: community
tags: "api,rest"
updated-on: "2026-02-22"
---
# Content here...- Add reference files in a
references/subdirectory if needed - Validate:
chub build <content-dir> --validate-only
- Create a directory under
<author>/skills/<name>/ - Add a
SKILL.mdwith YAML frontmatter:
---
name: my-skill
description: What this skill teaches agents to do
metadata:
source: community
tags: "automation,testing"
updated-on: "2026-02-22"
---
# Skill content here...- Write for LLMs: clear structure, code examples, explicit parameter names
- Use progressive disclosure: entry point (DOC.md/SKILL.md) should be < 500 lines
- Put detailed references in companion files with relative links
- Keep content up to date with the latest API versions
- Include practical code examples, not just API signatures
- Bugs: Use the bug report template
- Features: Use the feature request template
- Security: See SECURITY.md
By contributing, you agree that your contributions will be licensed under the MIT License.