factorialco/factorial-code-skills

fcode-release

Promote a Factorial Code app's code from its dev workspace to its prod workspace — fcode clone the dev- workspace, remote:add the prod- workspace, pull prod's current metadata, then add and push.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/factorialco/factorial-code-skills --skill fcode-release

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Factorial Code — Release

Promotes an app's code from its dev-… workspace to its prod-… workspace using CLI remotes. Input: the two workspace slugs. This updates prod's current (unversioned) code only — publishing a workspace version and moving the stable alias is the separate platform release (model in fcode-core-concepts, journey in fcode-ama): don't run settings:versions:* or move stable in this flow unless explicitly asked.

Gate every release with fcode-code-validation — see the procedure.

Gotchas

  • Prod write access is required. Only operators and the app's Factorial

team admins can push to a prod-… workspace; the admin's grant lands when a release is requested and rides in the access token — if prod access is refused right after requesting, run fcode login and retry. Who promotes and why: fcode-ama.

  • A ✅ validation is required before pushing. Run fcode-code-validation

on the dev workspace first; while the report has Blockers, refuse to push. Only an explicit user override ("push anyway despite the Blockers") proceeds — record that the gate was overridden.

  • Always confirm before the final `fcode push`. Summarize what will

change in the prod workspace and wait for an explicit yes — prod code serves live installations.

  • Never `--force`. If fcode pull or fcode push reports a divergence

between local and prod, stop, show what diverged, and ask the user how to proceed (fcode-cli).

  • The `fcode pull` after `remote:add` is mandatory — it picks up the

prod workspace's current metadata. Skipping it pushes stale settings over prod's.

  • Both slugs are encoded tokens (dev-… / prod-…), not the app's

UUID (see fcode-cli). Verify the prefixes: cloning target and push target must not be swapped.

  • A failing `fcode clone` usually means a mistyped token or missing

access (see fcode-ama) — don't retry blindly.

  • If `dev-xxx/` already exists locally, don't reuse it silently — ask

whether to release from a fresh clone (recommended) or the existing copy, and fcode pull it first.

Procedure

  1. Collect the two slugs. One dev-… (source) and one prod-…

(target). Wrong prefix or any ambiguity about which app they belong to: stop and ask.

  1. Validation gate. Ensure a current ✅ APP_VALIDATION_REPORT.md

exists for the dev workspace — run fcode-code-validation when it is missing or stale. On ❌, list the Blockers and refuse; proceed only on an explicit user override.

  1. Clone and wire the prod remote:
sh
   fcode clone --skipSkillsSetup dev-xxx
   cd dev-xxx
   fcode remote:add prod-xxx
   fcode pull          # mandatory: picks up prod's current metadata
   fcode add           # registers resources prod doesn't have yet

On a divergence reported by fcode pull: stop and ask (see Gotchas).

  1. Confirm. Run fcode status, summarize for the user what the push

will change in prod-xxx (processes, modules, variables, settings), and wait for explicit confirmation.

  1. Push:
sh
   fcode push

On a divergence: stop and ask — never --force on your own.

  1. Report the outcome, reminding the user that the platform release

(publish a version, move stable) is a separate step (fcode-ama).

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills
factorialco
コミュニティ

fcode-code-validation

Pre-production review of a Factorial Code app — clone the workspace read-only, run the static check catalog, classify findings as Blocker/Warning/Suggestion, and write APPVALIDATIONREPORT.md with a ✅/❌ promotion verdict. Use when validating, reviewing, or auditing a Factorial Code (fcode) app or workspace before a release, or when asked whether an app is ready to ship.

導入数
1
GitHub Stars
1
更新日
10月20日
factorialco
コミュニティ

fcode-cli

Use the Factorial Code CLI (fcode) for local development and cloud sync — the pull → add → run → push flow, the local webhook/forms server, workspace versions and aliases, and the workspace config files (metadata.json, settings.json, variables). Use when running fcode commands, testing a process locally, syncing to the cloud, cloning every App of a development team, inspecting or resolving differences between local and cloud, or configuring a process's webhook, Factorial Action (the factorial bl

導入数
1
GitHub Stars
1
更新日
10月20日
factorialco
コミュニティ

fcode-core-concepts

Factorial Code platform architecture and core concepts — processes, modules, execution context, variables, inheritance from parent workspaces, datastore, file storage, workspace structure, and naming conventions. Use when building, editing, or reasoning about any Factorial Code (fcode) process, module, or workspace; start here before writing process or module code.

導入数
1
GitHub Stars
1
更新日
10月20日
factorialco
コミュニティ

fcode-examples

Reference implementations for Factorial Code — a complete marketplace payroll integration, a custom app with full install/uninstall lifecycle, an OAuth account connection from a form, and utility processes. Use when building a Factorial Code (fcode) integration, custom app, or automation end to end and you want a proven, working pattern to adapt — read the matching reference before writing code.

導入数
1
GitHub Stars
1
更新日
10月20日