Skip to main content

yjcli

Wizard that scaffolds YJ-architecture repositories: platform code folders, services, tooling plugins, and AI agent wiring (Cursor, Claude Code, Codex).

Run yjcli start and it walks you through a checklist (yjcli alone prints help). Nothing is written until you confirm the plan at the end. Every step can also be answered with a command-line argument, which skips that step.

Install

uv tool install yjcli
yjcli --version
uv tool upgrade yjcli

Quick start

cd /path/to/your-repo
yjcli start                             # interactive wizard
  ✔ 1. LLM 대상     Cursor, Claude Code
  ✔ 2. 플랫폼       backend, frontend
  ✔ 3. 플러그인     runner, secrets
  ▸ 4. 서비스 이름  (1/2) backend
  ○ 5. 확인 및 실행

? backend 서비스 이름 (공백 또는 , 로 구분): a1, a2
  → backend/a1, backend/a2

The same thing without prompts:

yjcli start -l cursor,claude -n backend=a1,a2 -n frontend=f1 --plugin runner,secrets -y

Steps

# Step Argument Notes
1 LLM targets -l/--llm cursor,claude,codex · all Multi-select (space toggles [x])
2 Platforms -p/--platform … · all Multi-select
3 Plugins --plugin runner,secrets,builder · all · none Required plugins are added automatically
4 Service names -n/--name <platform>=a1,a2 (repeatable) One screen per platform; split names with spaces or commas. -n alone also selects the platform
— Platform options -o/--option backend=proto Asked right after the names of a new platform
5 Confirm -y/--yes · --dry-run Non-interactive runs need --yes or --dry-run

← goes back one screen. Skills are not asked for — they follow the platforms.

Platforms

Platforms hold code only: service folders, stack files and .env.examples.

Platform What Skill
backend single backend (API); optional proto yj-backend
backend-msa gRPC microservices; proto/ always yj-backend-msa
backend-ssr server-rendered backend; views/ always; optional proto yj-backend-ssr
frontend Vite + React + TS yj-frontend
mobile-app Flutter yj-mobile-app
pc-app Electron yj-pc-app
cli CLI apps yj-cli
browser-extension MV3; native_* services are native hosts yj-browser-extension + yj-backend
scheduler periodic batch jobs yj-scheduler

Plugins (repository tooling under tools/)

Plugin Installs Requires
runner tools/runner/run.{sh,bat,ps1}, root Makefile / make.bat → make <platform> [NAME=<service>] secrets
secrets tools/secrets/<platform>/<service>/.env.{local-dev,development,production} — committed in plain text (private repos only) —
builder tools/builder/ (build/deploy hosts, steps/{proto,ssr,docker}.sh, per-platform stubs), Dockerfile for deployable services → make <platform>-build-<env> / -deploy-<env> secrets

Each service declares its local command as RUN_COMMAND in tools/secrets/<platform>/<service>/.env.local-dev; the runner exports that file and runs it. Generated build/deploy stubs fail with an implementation prompt until you replace them.

Updating

Pick up a new yjcli release

When skills, AGENTS.md rules or managed scripts change in yjcli:

uv tool upgrade yjcli
yjcli status            # tells you a newer yjcli is installed
yjcli update --diff     # review what changes, then confirm (or -y)

yjcli update keeps your selection and only re-renders what yjcli owns. A yjcli that is older than the one that last wrote .yjcli/manifest.toml refuses to run (so teammates on old versions cannot roll files back); --force overrides.

Change the selection

yjcli start                                # wizard, stored selection as defaults
yjcli start --plugin runner,secrets,builder -y   # add the builder plugin
yjcli service add -n backend=a3            # add services
yjcli plan --diff                          # show the plan only

What yjcli owns vs. what you own

File kind On update
managed (skills, CLAUDE.md, tools/runner/*, Makefile, builder hosts/steps) refreshed; skipped with a warning if you edited it (--force overwrites)
blocks (AGENTS.md <!-- yjcli:rules/skills/layout -->, .gitignore # >>> yjcli:managed) only the block is regenerated; everything outside is yours
seed (AGENTS.md body, env files, build/deploy stubs, Dockerfile, settings) created once when its owner is new; yours afterwards

Customize a skill without losing updates: write the extra rules in .yjcli/skills/<skill>.md (e.g. .yjcli/skills/yj-backend.md). yjcli appends them to that skill for every LLM on each render. Put project-wide agent rules under ### Project rules in AGENTS.md (outside the blocks).

yjcli never deletes services or files you own. Removing a plugin or LLM deletes only its managed files; your own skills in the skills folders are left alone.

Rebuilding a repo made with yjcli 0.2.x

There is no automatic migration. Remove what 0.2.x generated and set the repo up again with 0.3; service source code stays where it is. Work on a new branch.

  1. Back up env values. 0.2.x kept .env.local-dev / .env.development / .env.production inside each service and git does not track them: find . -name node_modules -prune -o -type f -name '.env.*' ! -name '.env.examples' -print0 | tar --null -czf ~/env-backup.tgz -T - Also copy AGENTS.md aside — you will move your own notes back later.
  2. Rename platforms (in this order): git mv backend backend-msa, then move each backend-service/<svc> to backend-ssr/<svc> if it has views/, otherwise to backend/<svc>.
  3. Move env values (when using the secrets plugin): every <platform>/<service>/.env.* except .env.examples → tools/secrets/<platform>/<service>/. yjcli never overwrites existing value files, so your real values (including RUN_COMMAND) are kept.
  4. Delete the 0.2.x output: */scripts/, Makefile, make.bat, TOOLS.md, Diff.md, CLAUDE.md, AGENTS.md, the yj-* folders in .cursor/skills, .claude/skills, .agents/skills (keep your own skills), and any Dockerfile, .dockerignore, .gitignore you never edited (0.3 regenerates them; edited ones are kept as they are).
  5. Apply 0.3 with the platforms that now exist (services are picked up from their folders): yjcli start -l claude -p backend-msa,backend,frontend --plugin runner,secrets --dry-run, then the same with -y.
  6. Move your own content back: project values from the old AGENTS.md go outside the <!-- yjcli:… --> blocks; build/deploy logic you wrote in <platform>/scripts/build-*.sh / deploy-*.sh goes to tools/builder/<platform>/ (paths now use $ROOT_DIR/$PLATFORM and tools/secrets/…); existing frontend apps' vite.config.ts should load env from tools/secrets/frontend/<app>/ (envDir).
  7. Fix old paths in code, CI and symlinks: backend/proto → backend-msa/proto, backend-service/…, <platform>/scripts/….
  8. Check: yjcli update --dry-run reports no changes, make <platform> NAME=<service> runs, and tools/secrets/ is tracked by git (private repos only) before you commit.

Development

uv sync
uv run python -m unittest discover -s tests   # unit tests
scripts/e2e.sh                                 # end-to-end scenarios into ./sandbox
scripts/e2e.sh -k wizard -v                    # one case, with output on failure

Releasing (maintainers)

./release.sh                  # bump → tests → build + PyPI dry-run → commit/tag/push → publish
./release.sh --publish-only   # publish an already pushed release/X.Y.Z tag

Every step waits for y or exit (case-insensitive). Uncommitted changes do not block: they are listed in step 1 and committed together with the version bump in step 5, where you type the commit message. The bump step asks for major, minor or fix (no default) and bumps the pyproject.toml version, which always equals the last release (only release.sh changes it). Tags follow release/X.Y.Z. Tokens go in .env.release (git-ignored):

UV_PUBLISH_TOKEN=pypi-...       # required
GITHUB_TOKEN=github_pat_...     # optional, used only for git push

Metadata

Release files for yjcli 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yjcli 0.3.4
File Size Uploaded Provenance Actions
yjcli-0.3.4.tar.gz 57.7 kB Without provenance Details for yjcli-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yjcli 0.3.4
File Interpreter ABI Platform Actions
yjcli-0.3.4-py3-none-any.whl Python 3 none any Details for yjcli-0.3.4-py3-none-any.whl

Total release size: 144.1 kB

Release files / yjcli-0.3.4.tar.gz

Download URL yjcli-0.3.4.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2a6d71d0ee3e897d8e37137d8a12921f3e40fc97c435579d2293bb8b34b6b5ce
BLAKE2b-256 checksum
How to use checksums
98ba5e62d39ec5acb5f5e9822d05d4aeff2b66fa98b5137dedf3c53a6a39c762
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / yjcli-0.3.4-py3-none-any.whl

Download URL yjcli-0.3.4-py3-none-any.whl
Size 86.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d08650a1cf673e9f7d6e5e402fe29bc415e01eda647963ff98a8627a07472ce
BLAKE2b-256 checksum
How to use checksums
52d47168dbe11f6b8f23d8d6d99fd5ec29a195bc15dd1a2643eed13e9cbd771f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for yjcli 0.3.4

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.

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page