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 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

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 init / platform add).

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

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

  • --type / -t — platform type (backend, frontend, …) on init / platform add.
  • --platform / -p — existing platform root on service add.
  • --name / -n — service/app name on service add.
  • --path <dir> — target repo root (default: current directory).
  • --force / -f — overwrite existing root/agent files without prompting (init only).

Notes

  • platform add only creates platform roots (no services, no skills/rules/Makefile — use service add / sync).
  • service add needs the platform root first (init or platform add).
  • Non-interactive: pass -t / --all / -p / -n as needed.
  • doctor checks the installed package assets, not your target repo.

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 service add
yjcli service add -p backend -n api

yjcli sync agents
yjcli sync skills
yjcli sync rules
yjcli sync make
yjcli sync all
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.

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.9.tar.gz (30.0 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.9-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yjcli-0.0.9.tar.gz
Algorithm Hash digest
SHA256 72a0f9e03c228f1182a4d88bcc8ca2d127b410f69f9d2f9d332bee2083c59911
MD5 a23333db3989c0753a1aed98725deff6
BLAKE2b-256 d9342c6a24341ba0ac51d4e4a6276b7b3e0a006e107eb37d731920195ea1ec7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yjcli-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 40f7a1bf0aca5c09e7610576329aa5d5973edd0d12cbd7b78437595fcb1abc0e
MD5 45e66f600d0ab9435b4010fbf857a6f6
BLAKE2b-256 88250642d64897c44908709a0411f11a19e3cd99c5bb4533c38a9e7bb6464a5b

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