jup is a lightweight Python-based command-line tool designed to manage and synchronize "agent skills" across various AI assistant directories (e.g., Gemini, Copilot, Claude, Codex).
It allows users to install skills from GitHub repositories or local directories, keeping them organized via a lockfile and syncing them to target locations using symlinks or file copies.
ALWAYS use subagents for independent steps. ALWAYS follow the development workflow outlined below to ensure consistency, maintainability, and quality across the codebase. This workflow is designed to encourage thoughtful implementation, thorough testing, and clear documentation.
To maintain high standards for the jup codebase and its evolution, the following mandates must be strictly followed:
- Conventional Commits: All commit messages must follow the Conventional Commits specification (e.g.,
feat:,fix:,chore:). Usecz commitwhen possible. - Small, Clean Commits: Each commit should address exactly one concern. Git history quality is a priority.
- Verification Before Action: Run
just qa(linting, type checking, and tests) before each commit to ensure no regressions. - Precise Git Staging: Never use
git add .orgit add -A. Manually add specific files or hunks for each commit. - Confirm Before Pushing: Always seek user confirmation before pushing any changes to remote branches.
- No Force Pushes: Force pushing is prohibited unless explicitly requested by the user.
- Patch Over Minor: Prefer patch version updates (
0.x.y+1) over minor version updates (0.x+1.0) whenever the change allows it. - Adversarial Testing: For every significant feature or fix, launch 3 parallel adversarial subagents to find edge cases, implementation flaws, and bugs.
- Maintain Documentation: Keep this
AGENTS.md, the implementation plan, and thebacklog/roadmap.mdupdated throughout the development lifecycle. - Update Documentation on Every Change: Always update the following if needed when making a change:
AGENTS.md,docs/, andskills/.
- Clarify: Ask clarifying questions to ensure full understanding.
- Propose: Propose up to 3 approaches with pros and cons.
- Plan: Create a detailed implementation plan and break it into small, logical steps.
- Implement: Use subagents for independent steps. Commit often with clean, conventional messages.
- Test: Add new tests and run the full suite (
just qa). - Adversarial Phase: Launch 3 parallel adversarial subagents to try and break the implementation.
- Reflect: Analyze edge cases and findings from subagents.
- Document: Update
AGENTS.md,docs/, and thejupskill (skills/jup/SKILL.md). - Backlog: Keep
backlog/roadmap.mdupdated. - Finalize: Confirm with the user before pushing.
- Purpose: Centralized management of AI agent skills/tools.
- Main Technologies: Python 3.12+ (Target),
typer,pydantic(v2),rich, anduv. - Architecture:
src/jup/main.py: Main entry point and CLI registration.src/jup/context.py: Shared CLI state (e.g.,verbose_state).src/jup/core/: Package containing core business logic:src/jup/core/sync.py: Skill synchronization and filesystem orchestration.src/jup/core/filesystem.py: Safe filesystem operations and path validation.src/jup/core/lock.py: Atomic file locking for state management.
src/jup/commands/: CLI command implementation modules (decoupled from business logic).src/jup/config.py: Handles~/.juppersistence, config files, and the skills lockfile with atomic writes.src/jup/models.py: Defines Pydantic models for configuration, skill sources, and theDEFAULT_HARNESSESregistry.- Internal Storage: Skills are cached/stored in
~/.jup/skills/before being synced.
ALWAYS use uv run ... instead of python -m ... to run commands in the repo, as uv ensures the correct environment and dependencies are used.
- Environment Setup:
uv syncfollowed byuv pip install -e .anduv run pre-commit install. See CONTRIBUTING.md for full setup. - Temporary Files: NEVER create temporary directories or files (e.g.,
tmp_test/,tmp_chaos/) in the repository root. Always use the system's temporary directory (e.g.,tempfile.TemporaryDirectory()in Python or/tmp/in shell scripts) to maintain a clean workspace and avoid git pollution. - Task Runner: We use
just. Usejust qato run linting, type checking, and tests. - Testing: Run the full suite with
just test. - Formatting & Linting: Handled by
ruff(just formatandjust lint). - Type Checking: Handled by
ty(just typecheck). - Committing: Use
uv run cz commitfor conventional commits. - Publishing: Automated via GitHub Actions using
python-semantic-release.
- Target Python 3.12+ and maintain alignment with the existing
src/juplayout. - Use
typerfor CLI commands andpydantic(v2) for all data models. - Keep imports and formatting consistent;
ruffis the primary tool for enforcement.
- Skill Structure:
jupexpects a directory containing aSKILL.mdfile. It supportsskills/*/SKILL.mddiscovery. - Sync Behavior:
synconly manages entries in the lockfile. It does not preserve arbitrary manual edits inside managed target directories. - Sync Mode: The
sync-modealias in the CLI maps tosync_modein the config model. - Harness Registry: Supported harnesses: Gemini, Copilot, Claude, Cursor, Codex, Antigravity. Defined in
src/jup/models.py. - Scope: Terminology renamed from
globaltouser. Backward compatibility is maintained via Pydantic validators. - Path Consistency: Ensure that
list,sync, andremovecommands useget_scope_dirdirectly for the default target.
- Treat README.md and CONTRIBUTING.md as the primary user-facing and contributor documentation.
- When changing CLI behavior, must update the relevant tests under
tests/integrationandtests/e2e. - Surgical Updates: Always update
AGENTS.md,docs/, andskills/for every feature change.