YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

AI-Assisted Development Project Template

A production-ready project structure optimized for AI agents (local Ollama, Claude, OpenCode) to help you build software projects with maximum productivity.

πŸ—οΈ Project Structure

.
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ PRD.md              # Product Requirements Document (SOURCE OF TRUTH)
β”‚   β”œβ”€β”€ ARCHITECTURE.md     # File map, data flow, responsibilities
β”‚   β”œβ”€β”€ CONTEXT.md          # Coding standards, constraints, forbidden patterns
β”‚   └── decisions/          # Architecture Decision Records (ADRs)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ core/               # Config, models, database
β”‚   β”œβ”€β”€ api/                # Routes, schemas, dependencies
β”‚   β”œβ”€β”€ services/           # Business logic
β”‚   β”œβ”€β”€ utils/              # Validators, exceptions, logger
β”‚   └── main.py             # Application entry point
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ unit/               # Fast, isolated tests
β”‚   β”œβ”€β”€ integration/        # DB + external API tests
β”‚   └── e2e/                # Full flow tests
β”œβ”€β”€ agents/
β”‚   β”œβ”€β”€ smolagent_runner.py     # Single agent with local Ollama
β”‚   └── multiagent_workflow.py  # Multi-agent team (architectβ†’coderβ†’testerβ†’reviewer)
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ setup.sh            # One-command environment setup
β”‚   └── start-ollama.sh     # Optimized Ollama server startup
β”œβ”€β”€ .cursorrules            # Cursor IDE AI instructions
β”œβ”€β”€ .claude.md              # Claude Code AI instructions
β”œβ”€β”€ mcp.json                # MCP server configuration
β”œβ”€β”€ opencode.json           # OpenCode local model config
└── pyproject.toml          # Python project + tool configuration

πŸš€ Quick Start

1. Clone and Setup

git clone <your-repo>
cd ai-dev-template
chmod +x scripts/*.sh
./scripts/setup.sh

This sets up:

  • Python virtual environment (.venv/)
  • All dependencies (FastAPI, pytest, black, ruff, mypy, smolagents)
  • Starter source files (src/core/, src/api/, etc.)
  • Git repository with pre-commit hooks
  • .env template

2. Configure for Your Project

# Edit requirements
nano docs/PRD.md

# Edit architecture  
nano docs/ARCHITECTURE.md

# Edit coding standards
nano docs/CONTEXT.md

# Set environment variables
cp .env .env.local && nano .env.local

3. Start Local AI

# Start Ollama with optimized settings
./scripts/start-ollama.sh gemma4:4b

# Verify it's running
curl http://localhost:11434/api/tags

4. Run AI Agents

Single Agent (quick tasks):

source .venv/bin/activate
python agents/smolagent_runner.py "Create a user registration API endpoint"

Multi-Agent Team (complex projects):

source .venv/bin/activate
python agents/multiagent_workflow.py "Build a complete blog platform with authentication"

πŸ€– Agent Configuration

Local (Ollama)

  • Model: gemma4:4b (fast, good for coding)
  • API: http://localhost:11434/v1
  • Context: 128K tokens
  • Best for: Quick coding, refactoring, debugging

Cloud (Claude / OpenCode)

  • Config: .claude.md in repo root
  • MCP Servers: Hugging Face Hub, filesystem, git
  • Best for: Complex architecture, design decisions, code review

Hybrid Workflow

  1. Claude/OpenCode for architecture design and planning
  2. Local Ollama for fast iteration and implementation
  3. Both for code review and testing

πŸ“ Key Files for AI Context

File Purpose When to Update
docs/PRD.md What to build When requirements change
docs/ARCHITECTURE.md Where files go When adding/removing modules
docs/CONTEXT.md How to code When standards change
.cursorrules Cursor IDE behavior When switching editors
.claude.md Claude Code behavior When switching agents

πŸ”§ Tooling

Task Command
Run tests pytest --cov=src --cov-report=term-missing
Format code black src/ tests/
Lint code ruff check src/ tests/
Type check mypy src/
Run app uvicorn src.main:app --reload
Start Ollama ./scripts/start-ollama.sh

πŸ“š Recommended Workflow

  1. Write PRD β†’ Define what you're building in docs/PRD.md
  2. AI Architecture β†’ Ask Claude/OpenCode to design architecture β†’ Update docs/ARCHITECTURE.md
  3. AI Implementation β†’ Use local agent (smolagent_runner.py) to write code
  4. AI Testing β†’ Run multiagent_workflow.py to generate tests
  5. Human Review β†’ Check code, run pytest, fix issues
  6. Commit β†’ git commit -m "feat: implement user registration"
  7. Repeat β†’ Next feature

πŸ›‘οΈ MCP Servers

Connect your IDE to powerful tools:

  • Hugging Face Hub: Search models, datasets, papers
  • Filesystem: Read/write project files
  • Git: Version control operations
  • Code Execution: Test snippets before applying

Setup in your IDE (Cursor/VS Code/Claude Code):

  • Cursor: Add MCP servers from mcp.json
  • Claude Code: claude mcp add hf-mcp-server -t http "https://huggingface.co/mcp?login"
  • OpenCode: Configured in opencode.json

πŸ“¦ Dependencies

Core

  • FastAPI β€” Modern web framework
  • Pydantic v2 β€” Data validation and settings
  • SQLAlchemy 2.0 β€” Database ORM
  • pytest β€” Testing framework

AI/Agents

  • smolagents β€” Lightweight agent framework
  • Ollama β€” Local LLM server

Dev Tools

  • black β€” Code formatter
  • ruff β€” Fast linter
  • mypy β€” Static type checker
  • pre-commit β€” Git hooks

πŸ“– References

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Paper for Jordandevlog/ai-dev-template-backup