writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
deploy-configureGuides DocsGPT development, deployment, service topology, model configuration, authentication, storage, observability, and upgrades.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill for environment setup, application topology, provider/model configuration, auth, storage, database, queue, observability, and upgrade work.
Confirm Python 3.12, a project-local environment, and existing service health.
Configure a root .env; do not commit it.
Install the bundled 0.18.0 backend dependency snapshot explicitly (run from this sub-skill directory):
python -m pip install -r ../../references/backend-requirements-0.18.0.txt
For another DocsGPT release, compare repository provenance and refresh the skill rather than silently mixing dependency versions.
Run the full ASGI target:
uvicorn application.asgi:asgi_app --host 0.0.0.0 --port 7091 --reload
Start a worker in another terminal when ingestion, parsing, schedules, titles, or other background jobs are needed:
celery -A application.app.celery worker -l INFO
On macOS, use python -m celery -A application.app.celery worker -l INFO --pool=solo.
Run the frontend separately with its local npm dependencies.
Verify /api/health, /api/config, one model listing, and one bounded task before broader testing.
Flask-only development is a reduced mode: /mcp and native-async message-event reconnect are absent.
Use the bundled checker before blaming application code:
python scripts/check_services.py \
--postgres-uri "$POSTGRES_URI" \
--redis-url "$CELERY_BROKER_URL" \
--api-url http://localhost:7091
The helper performs connection/readiness probes only. Omit secrets from pasted output.
Use operator YAML through MODELS_CONFIG_DIR for OpenAI-compatible endpoints or extensions to registered providers. Preserve model ids after users select them.
python scripts/validate_model_catalog.py ./models-config
Validation checks shape, duplicate ids, supported capability fields, attachment aliases, reasoning effort, and OpenAI-compatible metadata. It does not contact providers.
AUTO_CREATE_DB=false and AUTO_MIGRATE=false when migrations are controlled by CI/CD.-Q consumes all configured queues; split docsgpt and parsing only with matching workers.LOCAL_MODE_ADMIN=true as local no-auth mode only; never use it on a networked deployment.