|
1 | | -# gitrules |
2 | | -Context files in no time for your github repo |
| 1 | +# Gitrules |
3 | 2 |
|
| 3 | +**Pastable superpowers for your codebases.** |
| 4 | +Build context files (agents, rules, MCP configs, etc.) for AI coding tools. Compose them in a browser workspace, then generate a single _install-in-one-click_ script that recreates the files inside any repo. |
4 | 5 |
|
5 | | -This uses: https://github.com/centminmod/my-claude-code-setup |
| 6 | +--- |
| 7 | + |
| 8 | +## β¨ What it does |
| 9 | + |
| 10 | +Weβre basically your **context manager** ποΈ β helping you **create, modify, and improve your coding context** for AI coding agents through simple files. Drop in rules, agents, or MCP configs and watch your agents level up β‘. |
| 11 | + |
| 12 | +- π₯οΈ **Visual workspace**: File tree + Monaco editor + quick actions, persisted in `localStorage`. |
| 13 | +- π **Instant sharing**: Every change turns into a fresh one-click install script (short hash included). |
| 14 | +- π€ **Plug-and-play add-ons**: |
| 15 | + - **Agents** from `app/actions/agents/*.md` |
| 16 | + - **Rules** from `app/actions/rules/*.md` |
| 17 | + - **MCPs** from `app/actions/mcps.json` β toggled into `.mcp.json` |
| 18 | +- π¨ **Zero-setup UI**: Jinja + Tailwind + Vanilla JS; no fragile build step. |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## π§° Tech Stack |
| 23 | + |
| 24 | +- **Backend**: FastAPI, Jinja2 |
| 25 | +- **Frontend**: Tailwind, Vanilla JS, Monaco editor (CDN) |
| 26 | +- **Runtime**: Uvicorn (dev) |
| 27 | +- **Config**: `.env` via `python-dotenv` |
| 28 | +- **Analytics (optional)**: `api-analytics` middleware |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## π Quick Start (Local) |
| 33 | + |
| 34 | +> This project uses **uv** for package management. |
| 35 | +
|
| 36 | +1) **Install** |
| 37 | +~~~bash |
| 38 | +uv pip install -r requirements.txt |
| 39 | +~~~ |
| 40 | + |
| 41 | + |
| 42 | +2) **Run the dev server** |
| 43 | +~~~bash |
| 44 | +uvicorn app.main:app --reload |
| 45 | +~~~ |
| 46 | +Open http://localhost:8000 |
| 47 | + |
| 48 | +--- |
| 49 | + |
| 50 | +## π§ͺ Using the App |
| 51 | + |
| 52 | +1) **Open the site** β Use **Quick start** buttons to add Agents / Rules / MCPs. |
| 53 | +2) **Workspace** β Files appear in the left tree; edit in the center editor. |
| 54 | +3) **One-click install** β Top-right shows a shell command, for example: |
| 55 | +~~~bash |
| 56 | +sh -c "$(curl -fsSL http://localhost:8000/api/install/<HASH>.sh)" |
| 57 | +~~~ |
| 58 | +It creates folders, writes files, and lists any required **environment variables** it detected. |
| 59 | + |
| 60 | +> π **Security tip**: As with any `curl | sh`, inspect the script first: |
| 61 | +> `curl -fsSL http://localhost:8000/api/install/<HASH>.sh` |
| 62 | +
|
| 63 | +--- |
| 64 | + |
| 65 | +## β Add Your Own |
| 66 | + |
| 67 | +- **Agent**: drop `my-agent.md` into `app/actions/agents/` |
| 68 | + The UI label is derived from the filename (kebab β Title Case). |
| 69 | + |
| 70 | +- **Rule**: drop `my-rule.md` into `app/actions/rules/` |
| 71 | + |
| 72 | +- **MCP preset**: edit `app/actions/mcps.json` |
| 73 | + The installer toggles entries into `.mcp.json` and surfaces any `${ENV_VAR}` strings it finds. |
| 74 | + |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +## π Credits |
| 79 | + |
| 80 | +Using prompts from: |
| 81 | +https://github.com/centminmod/my-claude-code-setup |
| 82 | + |
| 83 | +--- |
0 commit comments