Repository navigation
Fix/loaded skills #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # dependencies (bun install) | ||
| node_modules | ||
|
|
||
| # output | ||
| out | ||
| dist | ||
| *.tgz | ||
|
|
||
| # code coverage | ||
| coverage | ||
| *.lcov | ||
|
|
||
| # logs | ||
| logs | ||
| _.log | ||
| report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json | ||
|
|
||
| # dotenv environment variable files | ||
| .env | ||
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
| .env.local | ||
|
|
||
| # caches | ||
| .eslintcache | ||
| .cache | ||
| *.tsbuildinfo | ||
|
|
||
| # IntelliJ based IDEs | ||
| .idea | ||
|
|
||
| # Finder (MacOS) folder config | ||
| .DS_Store | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ Specs, plans, design options, architecture decisions — these are not paperwork | |
|
|
||
| ## How It Works | ||
|
|
||
| A centralized `.agents/` directory and a universal `AGENTS.md` instruction file that every agent reads. Agents follow a **mode-tailored execution protocol**: depending on the selected mode (Prototype, Spec Driven, Rigid), they read relevant specs, create plans, explore options, and update artifacts before and after every code change. | ||
| A centralized `.agents/` directory and a universal `AGENTS.md` instruction file that every agent reads. Agents follow a **mode-tailored execution protocol**: depending on the selected mode (Prototype, Spec Driven, or Rigid), they read relevant specs, create plans, explore options, and update artifacts before and after every code change. | ||
|
|
||
| ``` | ||
| .agents/ | ||
|
|
@@ -45,23 +45,25 @@ A centralized `.agents/` directory and a universal `AGENTS.md` instruction file | |
| ## Quick Start | ||
|
|
||
| ```bash | ||
| # 1. Run the interactive setup script with a target directory | ||
| ./codewiser.sh ./my-project | ||
| # Interactively set up codewiser in a target project directory | ||
| bunx codewiser my-project | ||
|
|
||
| # 2. Select your AI agents and development mode (Prototype, Spec Driven, or Rigid) | ||
| # The script downloads the relevant skills, spec templates, and creates | ||
| # agent-specific configs with symlinks to the shared `.agents/skills/` directory. | ||
| # Or via npm (after publishing) | ||
| npx codewiser my-project | ||
|
Comment on lines
+48
to
+52
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
rg -n '"name"|"bin"' package.jsonRepository: yallma3/codewiser Length of output: 197 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== package.json relevant fields =="
cat -n package.json | sed -n '1,80p'
echo
echo "== README setup commands around lines 48-52 =="
cat -n README.md | sed -n '40,60p'
echo
echo "== npm package availability/version/package names =="
npm view codewiser-cli name version bin --json 2>/tmp/npm_codewiser_err.log || { cat /tmp/npm_codewiser_err.log; echo; }
npm view codewiser name version bin --json 2>/tmp/npm_codewiser_cli_err.log || { cat /tmp/npm_codewiser_cli_err.log; echo; }Repository: yallma3/codewiser Length of output: 3797 Use
🤖 Prompt for AI Agents |
||
|
|
||
| # 3. Start coding — agents read shared context from AGENTS.md (customized with your | ||
| # mode's execution protocol), load skills from `.agents/skills/`, and follow the | ||
| # tailored workflow defined by the selected mode. | ||
| # Or if linked locally | ||
| codewiser my-project | ||
| ``` | ||
|
|
||
| On Windows (PowerShell): | ||
| The CLI guides you through an interactive session: | ||
|
|
||
| ```powershell | ||
| .\codewiser.ps1 .\my-project | ||
| ``` | ||
| 1. **Select AI agents** — Choose which coding agents to configure (OpenCode, Claude Code, Cursor, Antigravity, Kilo Code) | ||
| 2. **Configure mode** — Pick a development mode (Prototype, Spec Driven, or Rigid) — or select workflows in legacy mode | ||
| 3. **Download files** — Downloads shared skills, spec templates, and manifest from GitHub | ||
| 4. **Generate configs** — Creates agent-specific configuration files | ||
| 5. **Create symlinks** — Symlinks shared skills into each agent's private directory | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Limit the symlink claim to agents that actually receive symlinks. The current initialization code creates symlinks for Claude and Cursor only; OpenCode, Antigravity, and Kilo reference shared files directly. Change this wording to “Create supported symlinks” or enumerate the applicable agents. 🤖 Prompt for AI Agents |
||
|
|
||
| Use `← Back` options to navigate between steps. Press `Esc` at any time to exit. | ||
|
|
||
| ## Supported Agents | ||
|
|
||
|
|
@@ -89,19 +91,43 @@ Skills are shared across all agents. Create a file at `.agents/skills/<skill-nam | |
|
|
||
| Example: the [git-worktrees skill](.agents/skills/shared/git-worktrees/SKILL.md) was added to teach agents how to isolate feature work using branches and worktrees during concurrent multi-agent development. | ||
|
|
||
| ## Setup Scripts | ||
| ## Requirements | ||
|
|
||
| | Platform | Script | Source | | ||
| |---|---|---| | ||
| | Linux / macOS | `codewiser.sh` | Downloads `AGENTS.md`, skills, and specs from `https://github.com/yallma3/codewiser` | | ||
| | Windows | `codewiser.ps1` | Same logic via PowerShell with `Invoke-WebRequest` | | ||
| - **Bun** (recommended) or **Node.js 18+** | ||
| - Git | ||
|
Comment on lines
+94
to
+97
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
rg -n 'Bun\.write|writeFile|node:fs/promises' src package.jsonRepository: yallma3/codewiser Length of output: 832 🏁 Script executed: #!/bin/bash
set -e
printf 'README relevant sections:\n'
sed -n '80,135p' README.md
printf '\npackage.json:\n'
cat package.json
printf '\nsrc/utils/download.ts:\n'
cat -n src/utils/download.ts
printf '\nAll Bun.write occurrences:\n'
rg -n 'Bun\.write' .Repository: yallma3/codewiser Length of output: 3995 Remove Node.js support until
🤖 Prompt for AI Agents |
||
|
|
||
| Both scripts use `manifest.json` to track artifact versions organized by development modes. During setup, you select which AI agents and which mode (**Prototype**, **Spec Driven**, or **Rigid**) to use. The selected mode determines which skills are downloaded and customizes `AGENTS.md` with the appropriate execution protocol. | ||
| ## Development | ||
|
|
||
| ## Requirements | ||
| ```bash | ||
| # Clone and install | ||
| git clone https://github.com/yallma3/codewiser-cli.git | ||
| cd codewiser-cli | ||
| bun install | ||
|
Comment on lines
+101
to
+105
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Correct the repository URL in the development setup. This command points to Proposed fix-git clone https://github.com/yallma3/codewiser-cli.git
+git clone https://github.com/yallma3/codewiser.git🤖 Prompt for AI Agents |
||
|
|
||
| - Bash **or** PowerShell 5+ | ||
| - Git | ||
| # Link globally (optional) | ||
| bun link | ||
|
|
||
| # Run directly | ||
| bun start my-project | ||
|
|
||
| # Or after linking | ||
| codewiser my-project | ||
| ``` | ||
|
|
||
| ## How the CLI Works | ||
|
|
||
| The CLI uses [@clack/prompts](https://github.com/natemoo-re/clack) for interactive prompts and [meow](https://github.com/sindresorhus/meow) for CLI argument parsing. It downloads skills and specs from the [codewiser](https://github.com/yallma3/codewiser) repository based on a `manifest.json` that tracks artifact versions organized by development modes. | ||
|
|
||
| ### Architecture | ||
|
|
||
| - `src/index.ts` — Entry point, parses CLI arguments, resolves target directory | ||
| - `src/commands/init.ts` — State machine orchestrating the 5-step setup process | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Correct the documented setup-step count. The initialization flow includes confirmation and reaches step 6 for symlink creation, so describing it as a “5-step setup process” is inaccurate. Either document all six steps or avoid stating a fixed count. 🤖 Prompt for AI Agents |
||
| - `src/utils/ui.ts` — Prompt wrappers with stdin resilience (@clack wrappers) | ||
| - `src/utils/prompts.ts` — Typed prompt functions for agent/mode/workflow selection | ||
| - `src/utils/download.ts` — HTTP download via `fetch()` + `Bun.write()` | ||
| - `src/utils/manifest.ts` — Manifest parsing, version comparison, file flattening | ||
| - `src/utils/generate-configs.ts` — Agent config file generation | ||
| - `src/utils/symlinks.ts` — Symlink creation with admin retry and copy fallback | ||
|
|
||
| ## License | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
Fix the log and report ignore patterns.
_.logdoes not ignore normal log files, and the report pattern contains literal underscores instead of wildcards. This can leave generated logs or reports unignored and expose them to accidental commits.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents