Cline rules
.clinerules/project.mdCline rules
Quality
84/100
Scores the file, not the repository.Length
635 words
26 headings · 8 code blocksRepository
1
— · pushed 56 days agoLast changed
3 days ago
First indexed 3 days ago.1# Project Configuration23> **Bootstrapped by `analyze_project`**, then hand-tuned for this repo.4> **Project:** my_project5> **Type:** library / teaching repo (Vercel AI SDK agent masterclass + VitePress docs)67---89## 🚨 MANDATORY: Load CodeOps Rules Before Any Work1011**Before ANY planning or implementation, the AI agent MUST load these rules12using the codeops-mcp tools:**13141. `get_rule("agents")` — Load agent behavior rules **(REQUIRED FIRST)**152. `get_rule("code")` — Load coding standards163. `get_rule("testing")` — Load testing workflows174. `get_rule("git-commands")` — Load git commit protocols1819These rules are **mandatory** and must be consulted before every task.20**Do NOT skip this step. Do NOT proceed without reading these documents.**2122---2324## Project Overview2526- **Name:** my_project27- **Description:** A hands-on masterclass repo for building production-grade AI28 agents in TypeScript with the Vercel AI SDK (`ai@6` + `@ai-sdk/openai@3`).29 Ships 10+ runnable single-concept tutorials under `src/agents/` plus a30 VitePress documentation site deployed to GitHub Pages.31- **Type:** library3233## Toolchain3435- **Language(s):** TypeScript (ESM, `type: module`, `module: nodenext`,36 `target: esnext`, `strict`, `noUncheckedIndexedAccess`, `exactOptionalPropertyTypes`)37- **Framework(s):** Vercel AI SDK (`ai`), VitePress (docs), Vitest (tests)38- **Package Manager:** yarn (1.22)39- **Test Framework:** Vitest4041**Manifest files found:** package.json, tsconfig.json4243## Commands4445All commands assume execution from the project root. Prefix all shell commands with `clear && sleep [delay] &&` (see Terminal Delay below).4647### Terminal Delay4849- **Delay (seconds):** 350- The `clear` ensures a clean terminal; the `sleep` gives VS Code time to initialize the terminal before the command runs.51- Adjust the delay for your environment: `1` for fast machines, `3` (default) for normal, `5` for slower environments.5253### Run a tutorial5455```bash56clear && sleep 3 && yarn dev <n> # <n> = source file number under src/agents57```5859### Build6061```bash62clear && sleep 3 && yarn build63```6465### Test6667```bash68# Run all tests69clear && sleep 3 && yarn test70```7172### Docs7374```bash75clear && sleep 3 && yarn docs:build # build the VitePress site76clear && sleep 3 && yarn docs:dev # local docs preview77```7879### Verify (before commit)8081```bash82# Full verification — run this before any git commit83clear && sleep 3 && yarn test && yarn docs:build84```8586## Project Structure8788### Type: Single repository8990### Directory Layout9192```93docs/ # VitePress documentation site (built to docs/.vitepress/dist)94plans/ # CodeOps plan artifacts95src/ # TypeScript sources96 agents/ # numbered single-concept tutorials (01..)97 tools.ts # shared tools (getWeather, calculator/safeEvaluate)98 index.ts # CLI launcher (yarn dev <n>)99 markdown.ts100dist/ # tsc output (git-ignored)101coverage/ # vitest coverage output (git-ignored)102```103104## Coding Conventions105106### Naming107108- **Files:** kebab-case, numbered for tutorials (e.g. `01-oneshot.ts`)109- **Components/Classes:** PascalCase110- **Functions/Methods:** camelCase111- **Constants:** UPPER_SNAKE_CASE112113### Dependencies114115- New build/test/docs tooling (Vitest, VitePress, Mermaid) goes under a116 **`devDependencies`** block — not needed at runtime; CI installs frozen.117- See `.clinerules/ai-sdk.md` for Vercel AI SDK conventions and gotchas118 (use `generateText`/`streamText` + `Output`, not the deprecated119 `generateObject`/`streamObject`).120121## Git & Commit Conventions122123### Commit Scope124125```126# Use module/feature as scope:127# feat(agents): ... fix(tools): ... docs(plans): ... chore(ci): ...128```129130### Branch Strategy131132- **Main branch:** `main`133- **Feature branches:** `feature/[name]`134135## Special Rules (Project-Specific)136137```138- Docs must never drift from code: import real source via VitePress <<< snippets.139- No live OpenAI/embedding calls in tests; CI must be deterministic (mock model).140- Never commit secrets; OPENAI_API_KEY lives in .env (git-ignored).141```142143## Cross-References144145The generic rule files that read this `project.md`:146147- **make_plan.md** — Uses verify command, file paths, commit scope, task file path patterns148- **code.md** — Uses language conventions, architecture rules149- **testing.md** — Uses test commands, test locations, test framework150- **git-commands.md** — Uses commit scope, verify command151- **agents.md** — Uses shell commands, verify command152- **preflight.md** — Uses project type, tech stack, and conventions for grounded quality audits153
Also in blendsdk/building-agents-vercel-ai-sdk
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 |
|---|---|---|---|---|---|
| blendsdk/building-agents-vercel-ai-sdk.clinerules/ai-sdk.md · 1 | Cline rules | styleapido-notagent-behaviour | 57/100 | 3 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-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 7 | 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 | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/60-pubmed-python.md · 7 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 7 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
