Skip to content

Commit aa83a29

Browse files
committed
readme
1 parent 08287f9 commit aa83a29

File tree

1 file changed

+81
-3
lines changed

1 file changed

+81
-3
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,83 @@
1-
# gitrules
2-
Context files in no time for your github repo
1+
# Gitrules
32

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

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

Comments
Β (0)