Cline rules
.clinerules/agent-guidelines.mdCline rules
Quality
73/100
Scores the file, not the repository.Length
381 words
19 headings · 3 code blocksRepository
0
— · pushed 119 days agoLast changed
2 days ago
First indexed 2 days ago.1# AI Agent Guidelines23> Guidelines for AI agents working with Project Shisha.45## Agent Context67This is a **Bun workspaces monorepo** with 2 applications:89- `apps/fuel-advisor-bot` — Telegram fuel price bot10- `apps/tablo-crawler` — Web crawler1112The architecture prioritizes **predictability** and **agent-friendliness**.1314---1516## Quick Reference1718### Required Files Per App1920Every app in `apps/` MUST have:2122- `Dockerfile` — Safe strategy (Bun runtime)23- `Dockerfile.optimized` — Optimized (compiled binary)24- `compose.yml` — Container config25- `.env.example` — Environment template26- `deploy.vars.yml` — Deployment metadata2728### Key Paths2930| Path | Purpose |31| --------------------------- | ---------------------- |32| `apps/<app>/` | Application source |33| `infra/compose/` | Shared Docker services |34| `ansible/roles/app_deploy/` | Deployment role |35| `.github/workflows/` | CI/CD pipelines |3637---3839## Agent Workflow4041### Before Making Changes42431. **Read the architecture** — Check ARCHITECTURE.md first442. **Check existing patterns** — Look at similar files in other apps453. **Identify the scope** — Which app? Which files?4647### Common Tasks4849#### Run an app locally5051```bash52bun run dev:fuel-advisor-bot53bun run dev:tablo-crawler54```5556#### Build an app5758```bash59bun run build:fuel-advisor-bot60bun run build:tablo-crawler61```6263#### Deploy an app6465```bash66ansible-playbook -i ansible/inventories/production/hosts.ini \67 ansible/playbooks/deploy-app.yml \68 -e "app_path=apps/fuel-advisor-bot"69```7071#### Add a new app72731. Create `apps/new-app/` with required files742. Add scripts to root `package.json`753. Create CI workflow in `.github/workflows/`764. Add entry to README.md7778---7980## Important Conventions8182### File Naming8384- Files: `lowercase-with-dashes.ts`85- Classes: `PascalCase`86- Functions: `camelCase`8788### Docker Strategy8990- Default: `Dockerfile` (safe strategy)91- Set via `deploy.vars.yml`: `dockerfile_strategy: safe`9293### Watchtower9495- Runs globally in `infra/compose/watchtower.yml`96- Apps opt-in with label: `com.centurylinklabs.watchtower.enable: "true"`9798### Environment Variables99100- Templates in `.env.example` (committed)101- Actual values in `.env` (gitignored)102- Production on server only103104---105106## What NOT To Do107108- Don't create separate Watchtower instances per app109- Don't hardcode deployment values — use `deploy.vars.yml`110- Don't duplicate configs — reference shared ones in `infra/`111- Don't commit secrets to `.env` files112113---114115## Available Documentation116117| File | Description |118| ------------------------------------- | ---------------- |119| [README.md](../README.md) | Project overview |120| [CONTRIBUTING.md](../CONTRIBUTING.md) | Dev guidelines |121| [ARCHITECTURE.md](../ARCHITECTURE.md) | Design decisions |122| [CLAUDE.md](../CLAUDE.md) | AI context |123124---125126_For agents: Always prefer explicit conventions over implicit knowledge._127
Also in BattlefieldNoob/Project-Shisha
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| BattlefieldNoob/Project-ShishaCLAUDE.md · 0 | CLAUDE.md | setupbuildtestlint-format+4 | 97/100 | 2 days ago | |
| BattlefieldNoob/Project-Shisha.clinerules/project-context.md · 0 | Cline rules | teststylearchagent-behaviour | 71/100 | 2 days ago | |
| BattlefieldNoob/Project-Shisha.clinerules/testing-rules.md · 0 | Cline rules | teststyletesting-strategydo-not | 54/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
