Skip to main content

Scaffold platforms, services, and AI agent wiring (Cursor/Claude) for YJ architecture repos.

Project description

yjcli

CLI that scaffolds YJ platform folders, services, and Cursor/Claude agent wiring.

Templates, skills, rules, and root make files ship inside the package and are copied into the target repo.

Install

uv tool install yjcli
# pin a version:
uv tool install yjcli==0.0.5

yjcli --version
yjcli -h

Upgrade / remove:

uv tool upgrade yjcli
uv tool uninstall yjcli

Quick start

uv tool install yjcli
cd /path/to/your-repo
yjcli init --all
yjcli add service -p backend -n api
# edit AGENTS.md, then:
yjcli sync agents

make backend                 # start all backend services
make backend NAME=api        # start one service

Platforms

Use with -p / --platform (repeatable):

backend · backend-service · frontend · mobile-app · pc-app · cli · browser-extension

What init creates

  • AGENTS.md, CLAUDE.md (mirror of AGENTS.md)
  • .cursor/ / .claude/ skills, rules, and Claude settings.json
  • Root Makefile, make.bat, TOOLS.md, .gitignore
  • Selected platform roots (*/scripts/run.sh / run.bat)

Run (make)

Platform targets are discovered from */scripts/run.sh (after add platform). No Makefile edits when adding services.

make <platform>                 # all services under that platform (concurrent)
make <platform> NAME=<service>  # one service
make help

# Windows:
make.bat <platform>
make.bat <platform> NAME=<service>

Examples: make backend, make backend NAME=api.

Sync

Command When
yjcli sync agents After editing AGENTS.md — refreshes CLAUDE.md
yjcli sync skills Refresh packaged skills only
yjcli sync rules Refresh packaged rules only
yjcli sync make Overwrite root Makefile / make.bat and each installed platform’s scripts/run.sh · run.bat
yjcli sync all After upgrading yjcli — agents + skills + rules + make (+ platform run scripts)

Edit AGENTS.md only; do not edit CLAUDE.md by hand.

Options

  • --path <dir> — target repo root (default: current directory). Works on init, add, sync.
  • --force / -f — overwrite existing root/agent files without prompting (init, add).

Notes

  • add service needs the platform root first (init or add platform).
  • Non-interactive use requires flags (-p / -n / --all, etc.); omit them only in a TTY prompt.
  • doctor checks the installed package assets, not your target repo.
  • Services are discovered by directory; add service does not edit run.sh / Makefile.

Commands

yjcli init
yjcli init --all
yjcli init -p backend -p frontend
yjcli init --force

yjcli add platform
yjcli add platform --all
yjcli add platform -p cli

yjcli add service
yjcli add service -p backend -n api

yjcli sync agents
yjcli sync skills
yjcli sync rules
yjcli sync make
yjcli sync all
yjcli doctor

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yjcli-0.0.6.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yjcli-0.0.6-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

Details for the file yjcli-0.0.6.tar.gz.

File metadata

  • Download URL: yjcli-0.0.6.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for yjcli-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c0fa4e2fdf3747990a1bec4bdb3569f4e8d609e71ad8d41314f8eb989e2f4e83
MD5 d99bb3da618d135a0b0f792413b4752a
BLAKE2b-256 2ed3f0dd96e1fe7075d999757d59dc12b1697507d1a57407b8d188bd5e342258

See more details on using hashes here.

File details

Details for the file yjcli-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: yjcli-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for yjcli-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bc0f12d6cfac70dc30bd766fd3141d5a51b33b31ae6fde4c9379d3cc16ce0e0d
MD5 49df0afdfbf615d3010a59125048bf3a
BLAKE2b-256 269b76b6abe2cdace5d6703249e4fff1d891c89b2c667e75d66287eadbbf73f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page