yjcli
CLI that scaffolds YJ platform folders, services, and AI agent wiring (Cursor, Claude Code, Codex).
Templates, skills, and root make files ship inside the package and are copied
into the target repo. Standing agent guidance lives in AGENTS.md only
(CLAUDE.md is a mirror).
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 service add -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 -t / --type (repeatable on init / platform add):
backend · backend-service · frontend · mobile-app · pc-app · cli · browser-extension · scheduler
What init creates
AGENTS.md,CLAUDE.md(mirror ofAGENTS.md)- Skills under
.cursor/skills/,.claude/skills/,.agents/skills/(Codex) - Claude
settings.json - Root
Makefile,make.bat,TOOLS.md,.gitignore Diff.md— user-maintained architecture difference and manual restoration notes- Selected platform roots with
scripts/run.*and development/production deploy templates
The root Makefile / make.bat wires platform run and deploy entry points. Deploy
templates print the exact file to implement and fail until the project supplies
its build/package and upload logic. They remain platform-level; do not add
per-service scripts/ directories or per-service Makefiles.
Diff.md is created only when missing, including with init --force. yjcli never
reads, updates, overwrites, or uses it for automatic restoration during sync or
migration.
Operating rules (skill routing, output discipline) are in AGENTS.md — not in
.cursor/rules / .claude/rules.
Run (make)
Platform targets are discovered from */scripts/run.sh (after init / platform add).
Each service declares its local command as RUN_COMMAND in .env.local-dev.
New services include .env.local-dev, .env.development, .env.production, and
.env.examples. Only .env.local-dev and .env.examples are required;
development/production may be removed and other .env.<environment> files may
be added. Commit .env.examples only.
The platform runner executes that repository-owned declaration instead of
inferring npm, uv, Go, or another language/runtime from project manifests.
make <platform> # all services under that platform (concurrent)
make <platform> NAME=<service> # one service
make <platform>-deploy-development [NAME=<service>]
make <platform>-deploy-production [NAME=<service>]
make help
Sync
| Command | When |
|---|---|
yjcli sync agents |
After editing AGENTS.md — refreshes CLAUDE.md |
yjcli sync skills |
Refresh packaged skills (Cursor / Claude / Codex) |
yjcli sync make |
Overwrite root make/run files; install missing deploy scripts while preserving implemented ones |
yjcli sync all |
Soft upgrade — mirror CLAUDE + skills + make (keeps your AGENTS.md) |
yjcli sync migrate -y |
Hard upgrade — package template overwrites AGENTS.md, wipes skills dirs, drops legacy rules/.agent, refreshes settings/TOOLS/gitignore/make |
Edit AGENTS.md only; do not edit CLAUDE.md by hand. Use migrate when upgrading from older yjcli layouts (rules era).
Options
--type/-t— platform type (backend,frontend, …) oninit/platform add.--platform/-p— existing platform root onservice add.--name/-n— service/app name onservice add.--path <dir>— target repo root (default: current directory).--force/-f— overwrite existing root/agent files without prompting (initonly).
Notes
platform addcreates platform roots and their run/deploy scripts (no services, skills, or root Makefile).service addneeds the platform root first (initorplatform add).- Non-interactive: pass
-t/--all/-p/-nas needed, and pass--yesfor everysynccommand. doctorchecks the installed package assets, not your target repo.sync skills/sync allremove legacy.cursor/rulesand.claude/rulesif present.sync migratealso overwritesAGENTS.mdfrom the package (destructive).
Commands
yjcli init
yjcli init --all
yjcli init -t backend -t frontend
yjcli init --force
yjcli platform add
yjcli platform add --all
yjcli platform add -t cli
yjcli platform add -t scheduler
yjcli service add
yjcli service add -p backend -n api
yjcli service add -p scheduler -n operations
yjcli sync agents
yjcli sync skills
yjcli sync make
yjcli sync all
yjcli sync migrate --yes
yjcli doctor
Research: token & exploration
Not measured yet.
From the workspace root (sibling of this package), with CURSOR_API_KEY in tools/.env:
make bench # Cursor SDK: prepare → trials → report → this section
See bench/README.md.
Metadata
Release files for yjcli 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yjcli-0.2.2.tar.gz | 37.2 kB | Without provenance | Details for yjcli-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yjcli-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for yjcli-0.2.2-py3-none-any.whl |
Total release size: 96.6 kB
Release files / yjcli-0.2.2.tar.gz
| Download URL | yjcli-0.2.2.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e29e7063c7cb51e51c31f4df901b47f9b3522ce43c3993e92316392d079b234
|
|
BLAKE2b-256 checksum How to use checksums |
d2e1ec75d055828d4bc3b8e1cd681996ba2e30c9a74c67df94facc00a78038ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / yjcli-0.2.2-py3-none-any.whl
| Download URL | yjcli-0.2.2-py3-none-any.whl |
|---|---|
| Size | 59.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fd9ead8749ee15d73a12795ba58d834e0dd6f1ad941414adee444ed3ab05d79
|
|
BLAKE2b-256 checksum How to use checksums |
a180eec4843ce6411a2177ecdf8d663f654ed0867044da5f90b21e0c38c30911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for yjcli 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.