How apinto25/claude-code-agents-skills works
Repository Role
This is course material for Claude Code agents and skills, with a contained example service: Grades API. The executable application is under grades-api/; repository-level .claude/ content defines Claude Code guidance rather than application runtime behavior.
Application Entry and Composition
FastAPI starts from grades-api/main.py, exposing the ASGI app used by Uvicorn. The app composes resource routers for students and grades, separating HTTP endpoint registration from persistence models and request/response schemas.
Key paths:
• grades-api/main.py
• grades-api/routes/students.py
• grades-api/routes/grades.py
Persistence Boundary
SQLite access and SQLModel session/database setup are centralized in grades-api/database.py. This is the storage boundary between API request handling and local relational persistence. The service is intended to run with a local SQLite database, with no indicated remote database or external SaaS dependency.
Key paths:
• grades-api/database.py
• grades-api/models/student.py
• grades-api/models/grade.py
Domain Model
The core domain consists of students and their grades. Student is the parent entity; Grade records performance associated with a student and a subject. The model layer represents persisted SQLModel entities and their relationships.
Key paths:
• grades-api/models/student.py
• grades-api/models/grade.py
• grades-api/models/__init__.py
API Contract Layer
Schemas isolate transport-level validation and serialization from database entities. Student and grade-specific schema modules define the accepted creation data and returned API representations; grade schemas also encode subject/grade-oriented inputs and outputs.
Key paths:
• grades-api/schemas/student.py
• grades-api/schemas/grade.py
• grades-api/schemas/__init__.py
Primary Request and Data Flow
1. Uvicorn loads the FastAPI app from grades-api/main.py.
2. Requests are dispatched to student or grade routers.
3. Routers validate payloads using schema types.
4. Route handlers use database sessions from grades-api/database.py.
5. SQLModel entities in grades-api/models/ create, query, and relate student and grade records.
6. Handlers return schema-shaped responses, including student performance summaries derived from persisted grades.
The main control boundary is router → schema validation → database session → SQLModel persistence/query → serialized response.
Runtime and Development Infrastructure
The service runs on Python, FastAPI, SQLModel, and SQLite. Dependency/environment management is defined by uv, with package metadata in grades-api/pyproject.toml and locked dependencies in grades-api/uv.lock. Local development launches Uvicorn against main:app; FastAPI provides interactive OpenAPI documentation at /docs.
Key paths:
• grades-api/pyproject.toml
• grades-api/uv.lock
• grades-api/.python-version
Claude Code Course Infrastructure
Repository-level agent instructions and reusable skills support the educational workflow around the example API. These are not imported by the API, but guide review, test execution, and commit-message tasks in Claude Code.
Key paths:
• .claude/agents/test-runner.md
• .claude/agents/test-coverage.md
• .claude/skills/python-review/SKILL.md
Main entry points: main.py FastAPI app · students.py Student routes · grades.py Grade routes · database.py Database sessions
Components 14
Grades API
FastAPI service runtime.
- Uvicorn
- FastAPI app · Composes API routers.
grades-api/main.py - Student routes
grades-api/routes/students.py - Grade routes
grades-api/routes/grades.py - Student schemas
grades-api/schemas/student.py - Grade schemas · Includes grade inputs and response shapes.
grades-api/schemas/grade.py - Python environment · uv package metadata and locked runtime dependencies.
grades-api/pyproject.toml
Persistence
SQLite and SQLModel data boundary.
- Database sessions · Central SQLite access boundary.
grades-api/database.py - Student model · Parent entity for grades.
grades-api/models/student.py - Grade model · Performance record linked to a student.
grades-api/models/grade.py - Local SQLite
Claude Code Course
Repository guidance outside application runtime.
- Test runner agent
.claude/agents/test-runner.md - Coverage agent
.claude/agents/test-coverage.md - Python review skill
.claude/skills/python-review/SKILL.md
Connections 15
- Uvicorn → FastAPI app: loads main:app
- FastAPI app → Student routes: registers
- FastAPI app → Grade routes: registers
- Student routes → Student schemas: validates and serializes
- Grade routes → Grade schemas: validates and serializes
- Student routes → Database sessions: uses sessions
- Grade routes → Database sessions: uses sessions
- Database sessions → Local SQLite: connects
- Student routes → Student model: queries and persists
- Grade routes → Grade model: queries and persists
- Grade model → Student model: belongs to
- Python environment → FastAPI app: defines runtime dependencies
- Test runner agent → FastAPI app: guides testing · Not imported at runtime.
- Coverage agent → FastAPI app: guides coverage work · Not imported at runtime.
- Python review skill → FastAPI app: guides review · Not imported at runtime.