Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
23
> Guidelines for AI coding agents working in this repository.
Sign in to like and favorite skills
Guidelines for AI coding agents working in this repository.
Gamified AI usage tracking platform. Monorepo: backend (FastAPI), frontend (TanStack Start), CLI (bun).
This project uses bd (beads) for issue tracking. Run
bd onboard to get started.
bd ready # Find available work bd show <id> # View issue details bd update <id> --status in_progress # Claim work bd close <id> # Complete work bd sync # Sync with git
bun install # Install dependencies bun dev # Start all packages bun build # Build all packages bun lint / bun lint:fix # ESLint (all packages) bun format # Prettier formatting bun typecheck # TypeScript type checking # Single file tests (CRITICAL) cd packages/frontend && npx vitest run path/to/file.test.ts # Frontend cd packages/backend && uv run pytest tests/unit/test_file.py # Backend # Backend dev cd packages/backend && uv run uvicorn src.app.main:app --reload cd packages/backend && uv run ruff check src/ # Lint cd packages/backend && uv run ruff format src/ # Format # Database cd packages/backend && uv run alembic upgrade head # Run migrations cd packages/backend && uv run alembic revision --autogenerate -m "desc"
any, no @ts-ignoreinterface for objects, type for unionsimport type for type-only importsMapped[]Decimal for financial calculationsdatetime.UTC instead of timezone.utc// 1. React/framework, 2. Third-party, 3. @/, 4. Relative, 5. type import { createFileRoute } from '@tanstack/react-router'; import { z } from 'zod'; import { db } from '@/lib/db'; import { StatsCard } from './stats-card'; import type { User } from '@/types';
kebab-case.tsx (components), kebab-case.ts (utils)PascalCase, Functions: camelCase, Constants: SCREAMING_SNAKE_CASEsnake_case, Routes: /kebab-case/fastapi-entity - New entity/model/fastapi-auth - Authentication/fastapi-database-setup - Database config/fastapi-core-* - Models, schemas, repository, service, app factory/tanstack-start-routing - New routes/tanstack-react-query-patterns - Data fetching/tanstack-start-server-functions - Server functions/tanstack-shadcn-* - Components, forms, data tablesDelegate styling, layout, animations to
frontend-ui-ux-engineer agent
/tanstack-client-auth - Token-based auth/tanstack-client-api-layer - API client setup/fastapi-testing - Backend testingany types (TS/Python) without justificationconsole.log in production code@/lib/db directly - use server functionsbun:sqlite--bg-base: #0A0A0A, Accent: --ember-500: #FF6B00import { cn } from '@/lib/utils'; import { Card } from '@/components/ui/card'; export function StatsCard({ className }: { className?: string }) { return <Card className={cn('bg-bg-elevated border-border-default', className)} />; }
// Regenerate after backend changes: cd packages/frontend && bun run generate:api import { useGetUserProfileApiV1UsersUsernameGet } from '@/api/users'; const { data } = useGetUserProfileApiV1UsersUsernameGet({ username: 'johndoe' });
packages/backend/src/app/{entity}/ ├── models.py # SQLAlchemy ORM ├── schemas.py # Pydantic schemas ├── repository.py # Data access ├── service.py # Business logic ├── router.py # FastAPI routes └── dependencies.py # DI functions
Pattern: Routers → Services → Repositories. Never skip layers.
docker compose -f docker-compose.db.yml up -d # Start cd packages/backend && uv run alembic upgrade head # Migrate docker compose -f docker-compose.db.yml down # Stop
Connection:
postgresql://burntop:burntop_dev_password@localhost:5433/burntop
When ending a work session, you MUST complete ALL steps below. Work is NOT complete until
git push succeeds.
MANDATORY WORKFLOW:
git pull --rebase bd sync git push git status # MUST show "up to date with origin"
CRITICAL RULES:
git push succeeds