configure-database
暂无简介
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
configure-database
Create the project-local gitignored conf that database and conversion-lattice skills read. Private values never enter git (POLICY.md P1.10).
Dependency check
CONF="$(git rev-parse --show-toplevel 2>/dev/null)/lmfdb-pipeline.conf"
if [ -f "$CONF" ]; then
echo "I'm sorry, I can't do that — lmfdb-pipeline.conf already exists at $CONF."
echo "Diff existing keys against the example before reconfiguring:"
echo " diff <(grep '^[A-Z_]*=' \"$CONF\" | cut -d= -f1 | sort) \\"
echo " <(grep '^[A-Z_]*=' <mathcity-pack-root>/subdomains/lmfdb/assets/lmfdb-pipeline.conf.example | cut -d= -f1 | sort)"
echo "To start fresh: cp \"$CONF\" \"${CONF}.bak\" && rm \"$CONF\""
exit 1
fi
Procedure
- Check for existing conf. Look for
lmfdb-pipeline.confat the project root ($(git rev-parse --show-toplevel)/lmfdb-pipeline.conf). If it already exists, diff its keys against the example and report any new keys; do not overwrite. - Copy the example.
cp <mathcity-pack-root>/subdomains/lmfdb/assets/lmfdb-pipeline.conf.example \ "$(git rev-parse --show-toplevel)/lmfdb-pipeline.conf" - Fill in values interactively. Ask one at a time (AskUserQuestion where available):
PGDATABASE— PostgreSQL database namePGSCHEMA— schema name (oftenlmfdb)DATA_DIR— project-relative flat-file cache dir (default:DATA)SCHEMA_MD— path to your schema.md file (default:schema.md) Never echo values back or pass them in argv.
- Gitignore the conf. Verify
lmfdb-pipeline.confis in the project's.gitignoreand prove it:
If not ignored, add the entry and re-verify before proceeding.git -C "$(git rev-parse --show-toplevel)" check-ignore lmfdb-pipeline.conf && echo ignored - Validate.
bash -n lmfdb-pipeline.conf— must parse. - Report which database/conversion-lattice skills are now usable.
Output
ready or blocked with the exact failing step. Never print conf contents.
See also
assets/lmfdb-pipeline.conf.example— the shipped templatemathcity-lmfdb.configure-server— sets up the SSH/compute-server side- POLICY.md P1.10 (no private values), P1.12 (setup skill required)
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code