Imported from MuhammedAlkhudiry/my-setup (
AGENTS.md). Install upstream withnpx skills add MuhammedAlkhudiry/my-setup. Copyright stays with the author.
- SCOPE — This repository defines shared AI guidelines, skills, and agent configuration for Claude Code, Codex, and OpenCode.
- PERSONAL-ONLY — Treat this repo as personal infrastructure for its owner only; do not design for sharing, multi-user setup, or user-configurable distribution.
- SOURCE-OF-TRUTH — Make changes in source files (
content/,config/,src/,shell/), never in installed copies under the home directory.
Important Files
-
content/skills/<category>/<name>/SKILL.md— Source files for local skills; each skill belongs under a category folder. -
config/skills.ts— Remote skill declarations fetched and installed by this repo. -
config/codex.ts,config/opencode.ts,config/claude.ts, andconfig/mcp.ts— Source of truth for the managed Codex, OpenCode, Claude Code, and MCP configuration keys. -
config/permissions.ts— Shared command and path allowlist rendered into OpenCode, Claude Code, and Codex permission surfaces. -
src/cli.tsandsrc/commands/system-tools-cli.ts—my-setupinstallation and external-tool maintenance CLI entrypoints. -
src/commands/install.ts— Local installer that renders and syncs rules, config, permissions, skills, shell helpers, secrets, and shared bin commands. -
src/commands/doctor-checks.ts— Local hygiene checks run bydoctor; extend it when the installer starts owning a new local surface. -
src/commands/lanes-cli.ts,src/lib/project-lanes.ts, andsrc/lib/lane-services.ts— Standalonelanescommand, canonical/task runtime registry, and service control plane. -
shell/zsh-custom.zshandshell/doctor.zsh— Synced shell config and local tool health checks. -
src/lib/system-tools.ts— System-tool inventory, ownership, update commands, and notes; keep it aligned withdoctor. -
config/active-projects.ts— Active project defaults and canonical clone roots (see ACTIVE-PROJECTS). -
ACTIVE-PROJECTS — Active project defaults are declared in
config/active-projects.tsand installed into the standalone locallanescatalog at~/.config/lanes/projects.json; disposable task environment registrations live in external state, not the project catalog. -
MAIN-ONLY — Work directly on
main; do not create branches unless explicitly requested. -
INSTALL — Use
mise run installas the only supported local sync/install command after changing content/config/generator behavior. Agents should usemise run install -- --compactso successful runs emit only the final result while warnings and failures remain visible. -
THIN-ZSHRC — If user
~/.zshrccontains anything beyond the managedshell/zsh-custom.zshimport, repair it directly instead of leaving installation blocked. Preserve custom shell code by migrating it intoshell/zsh-custom.zsh, then restore the thin~/.zshrcand rerun installation. -
SYSTEM-TOOLS — Keep
src/lib/system-tools.tsanddoctoraligned when repository workflows add, remove, or change a system-tool dependency. -
SKILL-STRUCTURE — Each skill must live in
content/skills/<category>/<name>/SKILL.mdwith YAML frontmatter (name,description) and instructions body. -
SKILL-OPENAI-YAML — Never add
agents/openai.yamlto a skill unless the user explicitly requests it. -
SKILL-REFERENCES — When reading or editing a skill, inspect its referenced files and relevant nearby source files too; do not judge the skill from
SKILL.mdalone. -
SKILL-CROSS-REFERENCES — When one skill refers to another, write
$skill-nameinstead of a bare or code-formatted name so renames, removals, and typos are validated. -
SKILL-CREATION-WORKSHOP — Before creating a new skill, always workshop the goal, arguments, trade-offs, and scope with the user, then do a deep web search for current external guidance or examples even if the user did not ask for it.
-
SKILL-PORTABLE — Installed-facing skill files must not point back to source-only repo paths such as
content/skills/...or localmy-setuppaths; use skill-relative references. -
SKILL-GLOBAL — Skill instructions are global capabilities; do not mention any project, repo, product, client, or local workspace by name.
-
SKILL-INSTALL — Never install skills with
npx skills add; local skills live in this repo undercontent/skills/<category>/*, and remote skills must be declared inconfig/skills.tsfor this repo's source/import logic. -
MY-SETUP-CLI —
my-setuponly providesinstalland built-in help. Usedoctorfor setup health checks andsystem-tools statusorsystem-tools update-planfor external CLI maintenance. -
LANES-CLI — Use the standalone
lanescommand for runtime environment maintenance, saved plans, and service control; read the narrowest live help for the task. -
KNOWLEDGE-CLI — Use the standalone
knowledgecommand for project knowledge packs; read its live help for the task. -
WORDING-QUALITY — Preserve user intent, but do not reuse the user's rough wording. Rewrite it into the clearest, strongest wording that fits the repo's voice.