بنقرة واحدة
google-sheets-formula-builder
Constructs and validates Google Sheets formulas from templates with syntax checking
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Constructs and validates Google Sheets formulas from templates with syntax checking
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | google-sheets-formula-builder |
| version | 1.0.0 |
| category | coordination |
| tags | ["google-sheets","formulas","templates","formula-validation"] |
| status | approved |
| author | CFN Team |
| description | Constructs and validates Google Sheets formulas from templates with syntax checking |
| dependencies | ["jq","bash"] |
| created | "2025-11-18T00:00:00.000Z" |
| updated | "2025-11-18T00:00:00.000Z" |
| complexity | Medium |
| keywords | ["formula-generation","formula-validation","sheets-api","syntax-validation"] |
| triggers | ["loop-3-formula-application","formula-creation","data-calculation"] |
| performance_targets | {"execution_time_ms":1000,"success_rate":0.98} |
Constructs Google Sheets formulas from templates and validates syntax before application. Enables safe formula generation with type checking, cell reference validation, and error prevention.
Manual formula creation is error-prone. Formulas with syntax errors, invalid references, or circular logic cause cascading failures in spreadsheets. This skill provides template-based formula generation with comprehensive validation ensuring only correct formulas are applied.
build-formula.shRequired Parameters:
--formula-type: Type of formula to build: SUM, AVERAGE, VLOOKUP, IF, ARRAY (required)--range: Cell range for formula, e.g., A2:C10--target-cell: Target cell for formula placement, e.g., D2Optional Parameters:
--condition: Condition for IF formulas, e.g., "A2>100"--criteria: Criteria for formula, e.g., "Status=Complete"--output-only: Output formula only, don't apply (default: true)--validate-only: Validate formula syntax without applyingUsage:
# Generate SUM formula
./.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh \
--formula-type SUM \
--range A2:C10 \
--target-cell D2
# Generate IF formula
./.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh \
--formula-type IF \
--range A2:C10 \
--condition "A2>100" \
--target-cell D2
# Generate VLOOKUP formula
./.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh \
--formula-type VLOOKUP \
--range A2:C10 \
--criteria "Lookup" \
--target-cell D2
# Validate syntax only
./.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh \
--formula-type SUM \
--range A2:C10 \
--validate-only
Sums values in a range with optional conditions.
{
"type": "SUM",
"formula": "=SUM(A2:C10)",
"description": "Sum of range A2:C10",
"complexity": "basic"
}
Calculates average of values in range.
{
"type": "AVERAGE",
"formula": "=AVERAGE(A2:C10)",
"description": "Average of range A2:C10",
"complexity": "basic"
}
Looks up value in first column of range.
{
"type": "VLOOKUP",
"formula": "=VLOOKUP(\"Lookup\",A2:C10,2,FALSE)",
"description": "Lookup value in range",
"complexity": "intermediate"
}
Conditional formula with true/false branches.
{
"type": "IF",
"formula": "=IF(A2>100,\"High\",\"Low\")",
"description": "If A2>100 then High else Low",
"complexity": "intermediate"
}
Array formula with multiple return values.
{
"type": "ARRAY",
"formula": "=ARRAYFORMULA(IF(A2:A>0,B2:B*C2:C,\"\"))",
"description": "Array formula calculating range",
"complexity": "advanced"
}
{
"success": true,
"confidence": 0.96,
"formula": "=SUM(A2:C10)",
"formula_type": "SUM",
"target_cell": "D2",
"syntax_valid": true,
"validation": {
"syntax": true,
"references": true,
"circular_refs": false,
"error_cells": 0
},
"deliverables": ["formula_definition"],
"errors": []
}
# Generate formula
FORMULA=$(./.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh \
--formula-type SUM \
--range A2:C100 \
--target-cell D2)
# Validate formula
if echo "$FORMULA" | jq -e '.syntax_valid == true' >/dev/null; then
echo "Formula generated and validated successfully"
else
echo "Formula validation failed"
fi
# Review generated formulas
VALIDATION=$(./.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh \
--formula-type VLOOKUP \
--range A2:C100 \
--validate-only)
if echo "$VALIDATION" | jq -e '.validation.syntax == true' >/dev/null; then
echo "Formula syntax valid, passing validation"
fi
❌ Manual formula strings - Always use builder script ❌ Skipping validation - Always validate before applying ❌ Hardcoded ranges - Use parameterized ranges ❌ Complex nested formulas - Break into helper columns ❌ No error handling - Check for error cells in results
google-sheets-validation skill.claude/commands/CFN_LOOP_TASK_MODE.mdTiered planning orchestrator. Runs the full SPARC+ pipeline (research, spec, decide, pseudo, data, arch, ux, design, test, ops) as a parallel DAG, scaled by build stage (mvp/beta/enterprise) via inclusion profiles. Enforces two gates: every success criterion is executable (verifiable-done) and every step is unambiguous (haiku-executable). Use as the entry point for any non-trivial build instead of cfn-spa-plan.
Post-planning completeness review. Extracts assumptions, traces dependencies, analyzes blast radius, checks alpha-readiness, surfaces gaps before implementation. Use after writing any plan that touches data, APIs, or shared state.
SPARC Specification phase. Make testable acceptance criteria, edge cases, pre/post conditions, invariants BEFORE planning implementation. Use when starting any non-trivial task to lock intent, surface ambiguity early.
Test-strategy phase of cfn-megaplan. Designs test depth properly: fixtures/test-data, the unit/integration/contract/e2e/load split, mocking strategy, and non-functional tests, instead of lumping everything into a vague red phase. Feeds Bar A (verifiable-done): every acceptance criterion becomes a concrete runnable check. Use after cfn-spec, cfn-arch, and (if frontend) cfn-ux.
Pre-edit backup + post-edit validation for safe file edits. Use to capture file state before edits, validate changes after edits, revert files to prior state, or ensure edit safety via auto backup/validation hooks.
Extract complete Redis coordination data from completed CFN Loop tasks and structure into comprehensive JSON analysis files