スキル一覧に戻る
Z1-Test

firebase-remote-config

by Z1-Test

Simplified itsme-fashion e-commerce development bootcamp

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


Firebase Remote Config Skill

This skill exposes atomic operations for Firebase Remote Config templates based on the official API. Use an access token with appropriate IAM role (cloudconfig.admin) to make changes.


Inputs

InputDescription
project_idFirebase project ID
namespaceTemplate namespace (firebase for client, firebase-server for server)
access_tokenOAuth2 Bearer token with remoteconfig scope (use gcloud auth application-default print-access-token)
template_fileLocal path for export/import
parameter_keyFeature flag/parameter identifier
parameter_valuesJSON of default + conditional values
condition_nameName of a condition
condition_exprExpression logic for condition
version_numberTemplate version number to rollback
percentRollout percentage
base_templateLocal path (diff base)
new_templateLocal path (diff new)
etagLatest ETag from fetch for safe publish

OPERATIONS

Fetch Current Template

Retrieve the active Remote Config template for a namespace.

Shell (curl)

bash scripts/fetch-template.sh \
  "{access_token}" "{project_id}" "{namespace}" "{output_file}"

List Parameters & Conditions

List keys in template.json:

Shell

bash scripts/list-keys.sh template.json

Create / Update Parameters

Modify template JSON locally using jq, then merge.


Create / Update Conditions

Modify template JSON locally using jq, then merge.


Merge Template JSON

Use Node script to merge changes safely.

node scripts/merge-template.js \
  --base="{base_template}" \
  --updates="{updates_file}" \
  --out="{output_file}"

Validate Template

Validation is implicit on publish; external orchestrator should ensure JSON correctness.

Validate JSON before publishing:

jq '.' template.json > /dev/null && echo "Valid" || echo "Invalid"

Publish Template

Replace the template using PUT.

Important: Remove version field before publishing (Firebase auto-generates it).

# Prepare template (remove version)
jq 'del(.version)' template.json > template-publish.json

# Publish using script (etag="*" for force update)
bash scripts/publish-template.sh \
  "{access_token}" "{project_id}" "{namespace}" "*" "template-publish.json"

Note: Using etag="*" forces an update. Firebase Remote Config API doesn't return ETag in headers, so force update is the standard approach.


Rollback Template

Rollback to a previous version.

bash scripts/rollback-template.sh \
  "{access_token}" "{project_id}" "{namespace}" "{version_number}"

Import / Export JSON

Export: fetch template to file Import: publish from file


Generate Percentage Rollout Condition

Create a conditional expression with percentage logic.

bash scripts/generate-percent-condition.sh "{condition_name}" "{percent}"

Delete Parameter

Remove parameter from template JSON then publish.

bash scripts/delete-parameter.sh "{template_file}" "{parameter_key}" "{output_file}"

Diff Templates

Show diff between two template files.

bash scripts/diff-templates.sh "{base_template}" "{new_template}"

Given a feature metadata object, produce a set of environment conditions.


Notes

  • Namespace parameter added for REST calls so client/server templates can be managed separately.
  • All operations are stateless and accept full inputs for each call.
  • No built-in workflow sequencing — external planner must orchestrate calls.
  • Scripts provided for shell/curl and Node merge logic.
  • Progressive disclosure: agents can load scripts or reference docs only when needed.

Supporting References

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です