Files
srbhr--resume-matcher/docs/agent/scope-and-principles.md
T
wehub-resource-sync 5bdf4cc89a
Publish Docker Image / publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:36 +08:00

1.8 KiB

Scope and Principles

Canonical source for agent behavior rules in Resume Matcher.

What This Repo Is

Resume Matcher is an AI-powered application that helps users tailor resumes to job descriptions. It consists of:

  • Backend: FastAPI + Python 3.13+ with multi-provider LLM support via LiteLLM
  • Frontend: Next.js 16 + React 19 with Swiss International Style design
  • Database: SQLite via async SQLAlchemy (aiosqlite)
  • PDF Generation: Headless Chromium via Playwright

Non-Negotiable Rules

Code Quality

  1. All frontend changes MUST follow the Swiss International Style design system. The full system is published as a portable pack at docs/portable/swiss-design-system/. Read tokens.md and components.md before touching UI.
  2. All backend functions MUST have type hints
  3. Run npm run lint before committing frontend changes
  4. Run Prettier (npm run format) before committing

Error Handling

  • Backend: Log detailed errors server-side, return generic messages to clients
  • Frontend: Use proper error boundaries and user-friendly error states

Security

  • Never expose API keys or sensitive data in client responses
  • Use asyncio.Lock() for shared resource initialization
  • Always use copy.deepcopy() for mutable default values

Out of Scope

The agent should NOT:

  • Modify GitHub workflow files (.github/workflows/)
  • Change CI/CD configuration without explicit request
  • Alter Docker build behavior without explicit request
  • Remove or disable tests