From bf725dfefad2106c7a4ba6d0ef9b8a4ade94c9e8 Mon Sep 17 00:00:00 2001 From: ObaidNadeem Date: Tue, 13 Oct 2026 05:06:48 +0500 Subject: [PATCH] feat: add ten useful community mods and catalog listings --- .github/workflows/community-mods.yml | 36 + .gitignore | 3 + biome.json | 35 + mods/README.md | 4 + mods/community/README.md | 58 + mods/community/api.ts | 95 ++ mods/community/cmd-mod-bookmarks.ts | 77 ++ mods/community/cmd-mod-context-meter.ts | 23 + mods/community/cmd-mod-focus.ts | 58 + mods/community/cmd-mod-git-summary.ts | 18 + mods/community/cmd-mod-pr-draft.ts | 19 + mods/community/cmd-mod-release-notes.ts | 19 + mods/community/cmd-mod-review.ts | 20 + mods/community/cmd-mod-run-stats.ts | 55 + mods/community/cmd-mod-standup.ts | 39 + mods/community/cmd-mod-test-plan.ts | 19 + mods/community/community.test.ts | 376 ++++++ mods/community/git.ts | 87 ++ mods/community/text.ts | 6 + mods/registry.json | 135 +- package.json | 40 + pnpm-lock.yaml | 1642 +++++++++++++++++++++++ readme.md | 10 + tsconfig.json | 13 + 24 files changed, 2886 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/community-mods.yml create mode 100644 .gitignore create mode 100644 biome.json create mode 100644 mods/community/README.md create mode 100644 mods/community/api.ts create mode 100644 mods/community/cmd-mod-bookmarks.ts create mode 100644 mods/community/cmd-mod-context-meter.ts create mode 100644 mods/community/cmd-mod-focus.ts create mode 100644 mods/community/cmd-mod-git-summary.ts create mode 100644 mods/community/cmd-mod-pr-draft.ts create mode 100644 mods/community/cmd-mod-release-notes.ts create mode 100644 mods/community/cmd-mod-review.ts create mode 100644 mods/community/cmd-mod-run-stats.ts create mode 100644 mods/community/cmd-mod-standup.ts create mode 100644 mods/community/cmd-mod-test-plan.ts create mode 100644 mods/community/community.test.ts create mode 100644 mods/community/git.ts create mode 100644 mods/community/text.ts create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 tsconfig.json diff --git a/.github/workflows/community-mods.yml b/.github/workflows/community-mods.yml new file mode 100644 index 0000000..f56ffd6 --- /dev/null +++ b/.github/workflows/community-mods.yml @@ -0,0 +1,36 @@ +name: Community mods +on: + pull_request: + paths: + - 'mods/**' + - 'package.json' + - 'pnpm-lock.yaml' + - 'tsconfig.json' + - 'biome.json' + - '.github/workflows/community-mods.yml' + push: + branches: [main] + paths: + - 'mods/**' + - 'package.json' + - 'pnpm-lock.yaml' + - 'tsconfig.json' + - 'biome.json' + - '.github/workflows/community-mods.yml' +permissions: + contents: read +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: pnpm + - run: pnpm install --frozen-lockfile --ignore-scripts + - run: pnpm test + - run: pnpm lint + - run: pnpm typecheck + - run: pnpm build diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ebfc2d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +coverage/ diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..ec8a0cf --- /dev/null +++ b/biome.json @@ -0,0 +1,35 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.3.15/schema.json", + "files": { + "includes": [ + "mods/community/**", + "package.json", + "tsconfig.json", + "mods/registry.json" + ] + }, + "assist": { + "enabled": true + }, + "formatter": { + "enabled": true, + "indentStyle": "tab", + "indentWidth": 4, + "lineWidth": 80 + }, + "javascript": { + "formatter": { + "quoteStyle": "single", + "trailingCommas": "all", + "arrowParentheses": "asNeeded", + "bracketSpacing": false, + "semicolons": "always" + } + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + } +} diff --git a/mods/README.md b/mods/README.md index 26d57dc..792c7cd 100644 --- a/mods/README.md +++ b/mods/README.md @@ -44,3 +44,7 @@ against [`registry.schema.json`](./registry.schema.json). `official` and the top-level `hidden` list are maintainer-only — leave them out of your PR. Keep the array valid JSON (no trailing commas) and one mod per PR where you can, so review stays quick. + +## Included community mods + +[Ten useful mods](./community/README.md) live in this repository. Install the bundle once with `cmd mods add CommandCodeAI/command-code -g`, then enable or disable its individual mods by name. The ten catalog rows share this source; they are not separate npm packages. diff --git a/mods/community/README.md b/mods/community/README.md new file mode 100644 index 0000000..785b191 --- /dev/null +++ b/mods/community/README.md @@ -0,0 +1,58 @@ +# Community mods + +Ten small, dependency-free mods for Command Code 1.81.0 or newer. The repository manifest loads the TypeScript sources directly; no build or npm publishing is needed to install. + +```sh +cmd mods add CommandCodeAI/command-code -g +cmd mods list +``` + +**This installs all ten mods as one bundle.** Each catalog entry uses that same install command. Disable any individual mod by its name, then restart Command Code (or use `/reload`): + +```sh +cmd mods disable cmd-mod-context-meter -g +cmd mods enable cmd-mod-context-meter -g +``` + +| Mod | Commands | What it does | +| --- | --- | --- | +| `cmd-mod-review` | `/review-changes [base-ref]` | Supplies real Git context for a code review with severity, locations, and failure scenarios. | +| `cmd-mod-standup` | `/standup [YYYY-MM-DD]` | Drafts an update from up to 50 recent commits and working changes. Defaults to the past 24 hours. | +| `cmd-mod-pr-draft` | `/pr-draft [base-ref]` | Drafts a PR title/body with verified changes and honest testing status. | +| `cmd-mod-release-notes` | `/release-notes [base-ref]` | Drafts user-facing notes and distinguishes uncommitted changes. | +| `cmd-mod-test-plan` | `/test-plan [base-ref]` | Plans concrete regression cases, expected outcomes, and relevant test commands. | +| `cmd-mod-git-summary` | `/git-summary [base-ref]` | Reports status, commit/staged/unstaged stats, and recent commits without a model call. | +| `cmd-mod-context-meter` | `/context-meter` | Shows measured context usage in a supported footer; suggests `/compact` at 80%. Never compacts automatically. | +| `cmd-mod-run-stats` | `/run-stats` | Reports timing and successful/failed tool counts for the current or latest run. Resets on a new session. | +| `cmd-mod-bookmarks` | `/bookmark