Agent Skillsbaserow/baserow › Add Django Config Env Var

Add Django Config Env Var

GitHub

用于在Baserow项目中新增Django配置环境变量,自动更新后端设置、Docker文件、前端映射及文档。适用于需同步修改多处配置文件以添加新环境变量的场景。

.agents/skills/add-django-config-env-var/SKILL.md baserow/baserow

Trigger Scenarios

需要新增Django环境变量 参考INTEGRATION_LOCAL_BASEROW_PAGE_SIZE_LIMIT模式

Install

npx skills add baserow/baserow --skill Add Django Config Env Var -g -y
More Options

Non-standard path

npx skills add https://github.com/baserow/baserow/tree/develop/.agents/skills/add-django-config-env-var -g -y

Use without installing

npx skills use baserow/baserow@Add Django Config Env Var

指定 Agent (Claude Code)

npx skills add baserow/baserow --skill Add Django Config Env Var -a claude-code -g -y

安装 repo 全部 skill

npx skills add baserow/baserow --all -g -y

预览 repo 内 skill

npx skills add baserow/baserow --list

SKILL.md

Frontmatter
{
    "name": "Add Django Config Env Var",
    "version": "1.0.0",
    "description": "Add a new environment variable for a Django setting in Baserow and propagate it to the few repo files that usually need it. Use this when a request says a config env var must be added in several places or references `INTEGRATION_LOCAL_BASEROW_PAGE_SIZE_LIMIT` as the pattern to follow."
}

Add Django Config Env Var

Use INTEGRATION_LOCAL_BASEROW_PAGE_SIZE_LIMIT as the template. The env var name should be prefixed with BASEROW_ but the internal var isn't.

Keep the change simple and explicit. Do not add abstractions for this.

Files To Check

When adding a new setting, usually check these files:

  • backend/src/baserow/config/settings/base.py
  • docker-compose.yml
  • docker-compose.no-caddy.yml
  • web-frontend/env-remap.mjs
  • docs/installation/configuration.md — the canonical env-var reference table; add a row in the right section
  • Backend or frontend code that uses the setting
  • A focused test if behavior changes

Workflow

  1. Add the Django setting in backend/src/baserow/config/settings/base.py near the closest related setting.

Example:

MY_SETTING = int(os.getenv("BASEROW_MY_SETTING", 123))
  1. If the variable should be configurable in Docker, add it everywhere the similar example appears in:
  • docker-compose.yml
  • docker-compose.no-caddy.yml
  1. If the frontend needs it at runtime, add it to web-frontend/env-remap.mjs.

  2. Update consumers to use the setting:

  • Backend: settings.MY_SETTING
  • Tests: override_settings(MY_SETTING=...)
  1. Add or update a targeted test if the setting changes behavior.

  2. Add the related documentation in docs/installation/configuration.md — find the right section (e.g. Backend Configuration, Integration Configuration) and add a table row matching the format of the nearest existing entry.

Quick Checklist

  1. Add it in base.py
  2. Mirror the matching Docker entries
  3. Add the Nuxt remap if frontend code needs it
  4. Use settings.<NAME> in code
  5. Add a focused test if needed
  6. Add a row to docs/installation/configuration.md when necessary

Guardrails

  • Do not add a raw os.getenv(...) in application code when the value belongs in Django settings.
  • Do not update only one Docker location if the example appears in several places.
  • Do not expose a backend-only setting to Nuxt unless the frontend actually needs it.
  • Prefer copying the closest existing setting instead of inventing a new pattern.

Version History

  • 2.3.3 Current 2026-08-20 09:13

Same Skill Collection

.agents/skills/add-update-builder-element-type/SKILL.md
.agents/skills/baserow-registry/SKILL.md
.agents/skills/core-graph/SKILL.md
.agents/skills/create-changelog/SKILL.md
.agents/skills/create-in-app-notification/SKILL.md
.agents/skills/create-update-runtime-formula/SKILL.md
.agents/skills/create-update-service/SKILL.md
.agents/skills/manage-backend-layers/SKILL.md
.agents/skills/manage-permissions/SKILL.md
.agents/skills/runtime-formulas/SKILL.md
.agents/skills/silk-profiler/SKILL.md
.agents/skills/write-backend-unit-test/SKILL.md
.agents/skills/write-frontend-unit-test/SKILL.md

Metadata

Files
0
Version
2.3.3
Hash
894a9978
Indexed
2026-08-20 09:13

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 22:37
浙ICP备14020137号-1 $방문자$