### Adding a New Config Example Source: https://github.com/a-tokyo/aiworkspace/blob/main/root-config/README.md Demonstrates how to add a new configuration rule for the Cursor IDE by creating a directory and a rule file, followed by running a setup command. ```bash mkdir -p root-config/.cursor/rules echo "# My Rule" > root-config/.cursor/rules/code-style.md npm run skills:setup ``` -------------------------------- ### Install AI Agent Environment Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Installs all necessary dependencies and sets up the AI agent environment. This command restores skills, mirrors configurations, creates skill symlinks, and installs git hooks. ```bash cd ~/dev//workspace npm install npm run skills:list # verify ``` -------------------------------- ### Install GitHub CLI Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Install the GitHub CLI using Homebrew and authenticate with GitHub. This is required for the GitHub MCP server. ```bash brew install gh gh auth login # GitHub.com → HTTPS → web browser gh auth status # verify ``` -------------------------------- ### Initial Setup for aiworkspace Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md This command sequence is for the initial setup of the aiworkspace project, adding the team's repository as the 'origin' remote and pushing the main branch. ```bash git remote add origin git push -u origin main ``` -------------------------------- ### Clone and Install AI Workspace Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Clone the team's workspace repository and install its dependencies. This sets up the local environment for AI-assisted development. ```bash mkdir -p ~/dev/ cd ~/dev/ git clone workspace cd workspace && npm install ``` -------------------------------- ### Initialize New AI Workspace Source: https://github.com/a-tokyo/aiworkspace/blob/main/README.md Use this command to create a new AI Workspace. This is a one-time setup for the initial workspace creator. ```bash mkdir ~/dev/ && cd ~/dev/ npx aiworkspace init cd workspace git remote add origin git push -u origin main ``` -------------------------------- ### Troubleshooting npm install Fails on Postinstall Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md If 'npm install' fails during the postinstall script, run this command manually to execute the script and view any specific errors. ```bash node scripts/skills/setup-skills.mjs ``` -------------------------------- ### Update All Skills in AI Agent Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Updates all installed skills for the AI agent. ```bash npm run skills:update # update all ``` -------------------------------- ### Add a Skill to AI Agent Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Adds a new skill to the AI agent. Use the --project flag to install it for a specific project instead of workspace-wide. ```bash npm run skills:add -- [--project ] # add ``` -------------------------------- ### Troubleshooting npm run upgrade Fails (with aiworkspace devDependency) Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md If 'npm run upgrade' fails and 'aiworkspace' is a devDependency, try running 'npm install' first to resolve any package issues, then retry the upgrade command. ```bash npm install ``` -------------------------------- ### Troubleshooting Skills Not Showing Up Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md If skills are not appearing, navigate to the workspace directory and run this command to set them up. Verify the presence of skill files in the specified directory. ```bash cd workspace && npm run skills:setup ``` -------------------------------- ### Mirroring Root Config to Parent Workspace Source: https://github.com/a-tokyo/aiworkspace/blob/main/root-config/README.md This section describes the mirroring process where files are copied, symlinks are recreated, and directories have their contents symlinked back to the parent root. ```text root-config/ ├── AGENTS.md # Standing instructions for all AI tools ├── CLAUDE.md # Symlink to AGENTS.md (Claude Code entry point) └── .agents/ └── skills/ # Shared AI agent skills (workspace-wide) ``` -------------------------------- ### Configure GitHub MCP Server Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Manually configure the GitHub MCP server in Cursor settings. This uses your existing `gh` CLI authentication. ```json { "mcpServers": { "github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "" } } } } ``` -------------------------------- ### Join Existing AI Workspace Source: https://github.com/a-tokyo/aiworkspace/blob/main/README.md Use this command to join an existing AI Workspace. This command should be run by every other team member. ```bash cd ~/dev/ git clone workspace cd workspace && npm install ``` -------------------------------- ### List Skills in AI Agent Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Lists all available skills in the AI agent. ```bash npm run skills:list # list ``` -------------------------------- ### Add an Agent Skill Source: https://github.com/a-tokyo/aiworkspace/blob/main/README.md Use this command to add a specific agent skill from the agent-skills repository. Ensure you have the correct repository and skill name. ```bash npm run skills:add -- a-tokyo/agent-skills --skill production-grade ``` -------------------------------- ### Skill Management Commands Source: https://github.com/a-tokyo/aiworkspace/blob/main/README.md A list of npm commands for managing skills within the AI Workspace. These commands allow for adding, removing, creating, listing, finding, updating, checking, and setting up skills. ```bash npm run skills:add -- [--project ] # add from registry npm run skills:add -- owner/repo --skill # pick from multi-skill repo npm run skills:remove -- [] [--project ] # remove npm run skills:create -- --name my-skill # create manually npm run skills:list # list installed npm run skills:find # search skill registry npm run skills:update # update all npm run skills:check # check for available updates npm run skills:setup # re-sync configs and symlinks ``` -------------------------------- ### Create a New Skill Manually Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Manually creates a new skill for the AI agent. ```bash npm run skills:create -- --name my-skill # create manually ``` -------------------------------- ### AI Workspace Directory Structure Source: https://github.com/a-tokyo/aiworkspace/blob/main/README.md This is a visual representation of the AI Workspace's directory layout. It shows the organization of configuration files, skills, and project-specific directories. ```text ~/dev// <-- open this in Cursor / your editor ├── workspace/ <-- this repo │ ├── root-config/ <-- canonical source for root-level AI configs │ │ ├── AGENTS.md <-- standing instructions for all AI tools │ │ ├── .agents/skills/ <-- workspace-wide skills │ │ └── skills-lock.json <-- lockfile for workspace-wide skills │ ├── .agents/skills/ <-- workspace project-specific skills │ ├── scripts/ <-- automation (setup, hooks, skill wrappers) │ └── package.json ├── / <-- your app / service / library ├── / └── ... ``` -------------------------------- ### Run Upgrade Script Source: https://github.com/a-tokyo/aiworkspace/blob/main/scripts/README.md This command upgrades the aiworkspace scripts. It either runs `npm update aiworkspace` if aiworkspace is a devDependency, or falls back to fetching from the upstream repository. ```bash npm run upgrade ``` -------------------------------- ### Pulling Template Updates with npm run upgrade Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md This command updates the aiworkspace project by fetching the latest template changes from 'upstream' and staging any modified scripts. It's recommended to review changes before committing. ```bash npm run upgrade # npm update aiworkspace + copy scripts/ (or git upstream fallback) git diff --cached # review what changed (both paths stage scripts/) git commit -m "upgrade scripts from aiworkspace" ``` -------------------------------- ### Troubleshooting npm run upgrade Fails (without aiworkspace devDependency) Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md If 'npm run upgrade' fails and 'aiworkspace' is not a devDependency, you may need to manually add the 'upstream' git remote pointing to the aiworkspace template repository. ```bash git remote -v # Add upstream if it doesn't exist: # git remote add upstream https://github.com/a-tokyo/aiworkspace.git ``` -------------------------------- ### Resync AI Agent Skills Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Resynchronizes the AI agent's skills, ensuring all configurations and symlinks are up-to-date. ```bash npm run skills:setup # re-sync ``` -------------------------------- ### Remove a Skill from AI Agent Source: https://github.com/a-tokyo/aiworkspace/blob/main/setup.md Removes a skill from the AI agent. Use the --project flag to remove it from a specific project instead of workspace-wide. ```bash npm run skills:remove -- [] [--project ] # remove ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.