A community-driven registry for the Claude Code ecosystem. Not affiliated with Anthropic.
Intelligent token optimization for Claude Code - achieving 95%+ token reduction through caching, compression, and smart
This repository uses GitHub Actions for automated CI/CD with comprehensive quality gates, automated releases, and dependency management.
Our CI/CD pipeline includes:
.github/workflows/ci.yml)Triggers: Pull requests and pushes to master
Jobs:
lint-and-formatbuildtestperformance-benchmarksintegration-testbuild jobstatus-checkTotal CI Runtime: ~10-15 minutes (with parallelization)
.github/workflows/release.yml)Triggers: Push to master (after PR merge)
Jobs:
releasepublishrelease jobnotifyrelease, publish jobsTotal Release Runtime: ~6-10 minutes
.github/workflows/quality-gates.yml)Triggers: Pull requests and pushes to master
Jobs:
bundle-sizesecurity-auditnpm auditlicense-compliancedependency-vulnerabilitiescode-qualityTotal Quality Gates Runtime: ~9-14 minutes (parallel execution)
.github/workflows/commitlint.yml)Triggers: Pull requests
Jobs:
commitlint.github/dependabot.yml)Schedule: Weekly (Monday 9:00 AM UTC)
Features:
dependencies, automatedClone the repository
git clone https://github.com/ooples/token-optimizer-mcp.git
cd token-optimizer-mcp
Install dependencies
npm install
Install semantic-release and commitlint globally (optional)
npm install -g semantic-release @commitlint/cli
Navigate to: Settings > Secrets and variables > Actions > New repository secret
Add the following secrets:
| Secret Name | Description | How to Get |
|---|---|---|
NPM_TOKEN | npm authentication token | https://www.npmjs.com/settings/YOUR_USERNAME/tokens |
CODECOV_TOKEN | Codecov upload token (optional) | https://codecov.io/ |
| Secret Name | Description | Use Case |
|---|---|---|
SNYK_TOKEN | Snyk authentication token | Advanced security scanning |
Navigate to: Settings > Secrets and variables > Actions > Variables tab
| Variable Name | Description | Example |
|---|---|---|
DISCORD_WEBHOOK_URL | Discord webhook for release notifications | https://discord.com/api/webhooks/... |
SLACK_WEBHOOK_URL | Slack webhook for release notifications | https://hooks.slack.com/services/... |
Follow instructions in BRANCH_PROTECTION.md
After first successful CI run:
.github/performance-baseline.jsongit add .github/performance-baseline.json
git commit -m "chore: add performance baseline"
git push
After first successful build:
du -sb dist | cut -f1 > .github/bundle-size-baseline.txtgit add .github/bundle-size-baseline.txt
git commit -m "chore: add bundle size baseline"
git push
All PRs must pass the following status checks before merging:
lint-and-format - Code style and lintingbuild - TypeScript compilationtest (18) - Tests on Node 18test (20) - Tests on Node 20test (22) - Tests on Node 22commitlint - Commit message formatbundle-size - Bundle size within limitssecurity-audit - No critical vulnerabilitieslicense-compliance - License compatibilityperformance-benchmarks - Performance metricsintegration-test - Integration test suitecode-quality - Code metrics and analysisDeveloper creates PR with conventional commits
type(scope): descriptionfeat(auth): add OAuth, fix(api): resolve race conditionCI runs on PR
PR is merged to master
Version determination
fix: commits → Patch version (0.0.X)feat: commits → Minor version (0.X.0)BREAKING CHANGE: → Major version (X.0.0)Automatic actions
If automated release fails:
# Ensure you're on master with latest changes
git checkout master
git pull
# Create version and tag
npm version patch -m "chore(release): %s" # or minor/major
# Push changes and tags
git push && git push --tags
# Publish to npm
npm publish
# Create GitHub release manually
gh release create v0.2.1 --generate-notes
NPM_TOKENCODECOV_TOKENDISCORD_WEBHOOK_URLSLACK_WEBHOOK_URLSolution: Add more unit tests to reach 80% coverage
npm run test:coverage
# Check coverage/index.html for uncovered lines
Solution: Optimize bundle or update baseline
# Check what's causing size increase
npm run build
du -h dist/
# If increase is justified, update baseline:
du -sb dist | cut -f1 > .github/bundle-size-baseline.txt
git add .github/bundle-size-baseline.txt
git commit -m "chore: update bundle size baseline"
Cause: No conventional commits since last release
Solution: Ensure commits follow format:
feat: for featuresfix: for bug fixesBREAKING CHANGE: for breaking changesSolution: Verify NPM_TOKEN secret
Solution: Review and fix issues
# Checkout Dependabot branch
git fetch origin
git checkout dependabot/npm_and_yarn/...
# Fix any breaking changes
npm install
npm test
# Commit fixes
git commit -am "fix: resolve dependency conflicts"
git push
Solution: Investigate performance regression
✅ Good
feat(api): add token refresh endpoint
fix(cache): resolve memory leak in LRU cache
docs(readme): update installation instructions
refactor(core): simplify optimization logic
❌ Bad
Update code
Fix bug
WIP
changes
git checkout -b feat/my-featureFor issues with CI/CD:
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Design enforcement with memory — keeps your UI consistent across a project
Universal SEO skill for Claude Code. 25 sub-skills + 18 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, bac
Route Claude Code traffic to any of 17 provider backends including free or local models