一键导入
project-workflows
Official Festapp workflows. How to run tests, manage secrets, sync translations, and commit changes safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Official Festapp workflows. How to run tests, manage secrets, sync translations, and commit changes safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | project-workflows |
| description | Official Festapp workflows. How to run tests, manage secrets, sync translations, and commit changes safely. |
| allowed-tools | Read, Run Command |
Official project procedures. See CONTRIBUTING.md for full details.
Before starting complex tasks, read: docs/architecture/ai_context.md
It explains:
When writing PostgreSQL functions (database/functions/):
public schema. Always set search_path = public, extensions. Use explicit eshop.tablename for eshop schema tables — never rely on search_path to resolve them.check_is_admin...).SECURITY DEFINER functions.Runs both Web Client and Database tests.
./automation/test_all.sh
Use when modifying SQL functions or migrations.
# All DB tests
node web_client/scripts/run_db_tests.js
# Specific file
node web_client/scripts/run_db_tests.js database/tests/path/to/test.sql
System-level tests (requires Supabase connection).
node tests/integration/bank_import.js --existing-token "..."
To deploy/update SQL functions remotely:
mcp_supabase-mcp-server_list_projects to get the
project_id.view_file the local SQL file.mcp_supabase-mcp-server_execute_sql with the project_id and
query (file content).To deploy/update Edge Functions:
mcp_supabase-mcp-server_deploy_edge_function.
files: Read content of index.ts, deno.json etc. first.list_dir and view_file to get the latest content.Run this after modifying Models, Routes, or Services (Refit):
fvm dart run build_runner build --delete-conflicting-outputs
Before committing, run this checklist:
./automation/apply_config.sh (Ensures
version/theme sync).analysis.txt, test_results.txt, temp_*.sql../automation/test_all.sh (Web + DB + Integration).fvm flutter analyze.node web_client/scripts/unify_translations.js (Flutter <-> Web)node web_client/scripts/reorder_cs_like_en.js (CS Structure).env files are ignored and not being committed.git add .git commit. The user will perform the commit.Run this checklist when performing a codebase-wide cleanup (e.g. comments, logs).
Ensure you sweep these areas:
.gitignore, README.md, project.conf.// returns true above return true;).console.log, print(), commented-out code
blocks.For complex cross-cutting concerns (leaks, API changes):
grep) to find all candidate files.task.md artifact..env.local (NOT committed).web_client/src/app_config.js.DATABASE_URL required for test runner.Rule: Never commit changes automatically. Always leave them staged for the user.