Markdown Converter
Agent skill for markdown-converter
This document provides instructions for AI coding agents to effectively contribute to the Code for Life workspace.
Sign in to like and favorite skills
This document provides instructions for AI coding agents to effectively contribute to the Code for Life workspace.
This is a monorepo containing multiple services for the Code for Life platform. The project is divided into three main parts:
frontend/: A TypeScript/React monorepo using Yarn workspaces.backend/: A Python/Django monorepo using pipenv for dependency management.legacy/: Older services that are being phased out.The entire workspace is managed as a collection of Git submodules. The main entry point for development in VS Code is the
codeforlife.code-workspace file.
All development tasks are orchestrated through a set of powerful shell scripts located in
/workspace/frontend/scripts and /workspace/backend/scripts. You must use these scripts for all tasks, as they ensure that the correct configurations and tools are used.
/workspace/frontend)The frontend is a modern TypeScript/React setup using Vite and Vitest.
Setup: To install all dependencies, navigate to a service's directory (e.g.,
/workspace/frontend/portal) and run:
/workspace/frontend/scripts setup
Running Checks: To run all quality checks (linting, formatting, type checking, and tests), use the
check command from a service's directory:
/workspace/frontend/scripts check
Running the Dev Server: To start the development server for a specific service:
/workspace/frontend/scripts run:dev
Running Tests: To run tests for a service:
/workspace/frontend/scripts test
/workspace/backend)The backend consists of several Django services.
Setup: To set up the Python environment and install dependencies for a service, navigate to its directory (e.g.,
/workspace/backend/portal) and run:
/workspace/backend/scripts setup
Running Checks: To run all quality checks (imports, formatting, type checking, linting, migrations, and tests), use the
check command from a service's directory:
/workspace/backend/scripts check
Running the Django Server: To start the local Django development server:
/workspace/backend/scripts run:django
Running Tests: To run tests for a service:
/workspace/backend/scripts test
Database Migrations: The backend uses Django migrations. When you change a model, you'll need to create a migration. The
check script verifies that no migrations are pending.
yarn, vite, pipenv, pytest, etc., directly. The wrapper scripts in /workspace/frontend/scripts and /workspace/backend/scripts are the source of truth for all development commands./workspace/frontend/package.json and tsconfig.base.json. Backend tool configuration (e.g., black, pylint, pytest) is in /workspace/backend/pyproject.toml./workspace/frontend/portal or /workspace/backend/sso).codeforlife-workspace repository.By following these guidelines, you will be able to navigate the codebase and contribute effectively.