Track and update action item status from natural language updates like 'Seanのメールには返信しておいた' or 'Lu対応予定'. Integrates with daily-comms-ops workflow. Use when managing action items across communication channels.
中文简介正在准备中。当前显示原文说明。
Expert guidance for Salesforce Flow implementation from design through deployment. Use this skill when building Screen Flows, Record-Triggered Flows, Schedule-Triggered Flows, or Autolaunched Flows. Covers Flow design patterns, metadata XML generation, variable/element reference validation, governor limit optimization, and sf CLI deployment. Critical for preventing reference errors (undeclared variables, invalid element references) and deployment failures. Use when creating new Flows, debugging Flow errors, optimizing Flow performance, or deploying Flows to production.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
This skill provides comprehensive guidance for Salesforce Flow implementation, from initial design through production deployment. It emphasizes preventing the most common Flow errors—particularly variable and element reference issues—through automated validation, proper metadata generation, and deployment best practices. Use this skill to build robust, error-free Flows that deploy successfully on the first attempt.
Invoke this skill when:
Choose the right Flow type and design pattern for your requirements.
Flow Type Decision Matrix:
| Flow Type | Trigger | Best For | User Interaction |
|---|---|---|---|
| Screen Flow | User clicks button/link | Guided processes, data collection | Yes |
| Record-Triggered | Record create/update/delete | Automated business logic | No |
| Schedule-Triggered | Time-based schedule | Batch processing, cleanup | No |
| Autolaunched | Called by other automation | Reusable logic, sub-flows | No |
Common Design Patterns:
Pattern 1: Wizard Pattern (Screen Flow)
Screen 1 (Input) → Decision → Screen 2A/2B → Assignment → Create Records → Screen 3 (Confirmation)
Pattern 2: Before-Save Trigger (Record-Triggered)
Trigger: Before Update → Decision → Assignment (Update Fields) → End
Pattern 3: Batch Processing (Schedule-Triggered)
Start → Get Records (Filter) → Loop → Update Records (Batch) → End
Variable Naming Conventions:
totalAmount, selectedAccount, recordCountScreen_Input_Details, Assignment_Calculate_Totalcol: colAccounts, colOpportunitiesis or has: isApproved, hasErrorExample - Screen Flow Variable Setup:
<variables>
<name>selectedAccountId</name>
<dataType>String</dataType>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>colOpportunities</name>
<dataType>SObject</dataType>
<isCollection>true</isCollection>
<objectType>Opportunity</objectType>
</variables>
Reference: Load references/flow_types_guide.md for detailed patterns, examples, and best practices for each Flow type.
Generate correct Flow-meta.xml files with proper structure and API version compatibility.
Why Metadata Matters:
Flow deployment requires both the Flow definition (.flow) and metadata file (.flow-meta.xml). Incorrect metadata structure causes deployment failures even if the Flow logic is perfect.
Use the Generation Script:
cd scripts/
python3 generate_flow_metadata.py ../MyFlow.flow \
--type recordTriggeredFlow \
--api-version 60.0 \
--status Draft \
--output ../MyFlow.flow-meta.xml
Manual Metadata Structure (when needed):
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>60.0</apiVersion>
<status>Draft</status>
<processType>AutoLaunchedFlow</processType>
<label>My Flow Label</label>
<description>Flow description</description>
</Flow>
Key Metadata Fields:
apiVersion: Must match your org's API version (typically 58.0-61.0)status: Draft or ActiveprocessType: Must match Flow type (see reference guide)label: Human-readable name (required)Reference: Load references/metadata_xml_reference.md for complete metadata structure, required vs optional elements, API version differences, and troubleshooting common metadata errors.
CRITICAL: Validate Flows before deployment to catch 90%+ of errors upfront, especially variable/element reference errors.
Use the Validation Script:
cd scripts/
python3 validate_flow.py ../MyFlow.flow-meta.xml --format markdown
Validation Categories:
The #1 cause of Flow deployment failures. The validator detects:
Error Type 1: Undeclared Variable
[E001] Undeclared Variable: 'totalAmout' referenced in Assignment_1
→ Did you mean 'totalAmount'? (declared on line 45)
→ Fix: Rename 'totalAmout' to 'totalAmount' in Assignment_1
Error Type 2: Invalid Element Reference
[E002] Invalid Element Reference: 'Screen_2' in Connector but element not found
→ Available elements: Screen_Input, Screen_Confirm, Assignment_1
→ Fix: Update Connector to reference existing element name
Error Type 3: Type Mismatch
[E003] Type Mismatch: Variable 'count' (Text) assigned Number value
→ Variable type: Text
→ Assignment value type: Number
→ Fix: Change variable 'count' to Number type or convert value to Text
Error Type 4: Collection vs Single Value
[E004] Collection/Single Value Mismatch: 'colAccounts' (Collection) used in single value context
→ Variable 'colAccounts' is a collection (isCollection=true)
→ Used in: Assignment expects single Account object
→ Fix: Use Loop to iterate or Get Records with FIRST operator
Critical Patterns to Avoid:
DML in Loop (ERROR):
<!-- BAD: DML inside Loop -->
<loops>
<name>Loop_Through_Accounts</name>
<recordUpdates>
<name>Update_Account</name> <!-- ❌ Causes governor limit error -->
</recordUpdates>
</loops>
Correct Pattern:
<!-- GOOD: Collect in loop, DML after -->
<loops>
<name>Loop_Through_Accounts</name>
<assignments>
<name>Add_To_Collection</name> <!-- ✅ Collect changes -->
</assignments>
</loops>
<recordUpdates>
<name>Update_All_Accounts</name> <!-- ✅ Batch update after loop -->
</recordUpdates>
SOQL in Loop (WARNING):
[W001] SOQL in Loop: Get_Records element 'Get_Related_Opportunities' inside Loop_Through_Accounts
→ Risk: May exceed 100 SOQL query limit
→ Recommendation: Move Get Records before loop and filter in memory
apiVersion, status, processType, label)[W002] Naming Convention: Variable 'var1' should use camelCase (e.g., 'myVariable')
[W003] Naming Convention: Element 'screen1' should use PascalCase (e.g., 'Screen_Input')
Example Validation Report:
=== Flow Validation Report ===
Flow: MyScreenFlow.flow-meta.xml
API Version: 60.0
Status: ❌ FAILED (3 errors, 2 warnings)
ERRORS:
[E001] Undeclared Variable: 'totalAmout' referenced in Assignment_Calculate_Total
→ Did you mean 'totalAmount'?
[E002] Invalid Element Reference: 'Screen_2' in Connector_After_Input
[E003] Type Mismatch: Variable 'recordCount' (Text) assigned Number value
WARNINGS:
[W001] SOQL in Loop: Get_Records inside Loop_Process_Accounts
[W002] Naming Convention: Variable 'amt' should use descriptive camelCase
✅ Validation complete. Fix 3 errors before deployment.
Reference: Load references/variable_reference_patterns.md for comprehensive error catalog (Top 10 errors), root cause analysis, fix patterns, and prevention checklists.
Deploy validated Flows using sf CLI with proper error handling and rollback capabilities.
Prerequisites:
# Verify sf CLI installed
sf --version
# Authenticate to org
sf org login web --alias my-sandbox
Deployment Workflow:
Option 1: Manual Deployment (Quick)
# Deploy single Flow
sf project deploy start --source-dir force-app/main/default/flows/MyFlow.flow-meta.xml --target-org my-sandbox
# Check deployment status
sf project deploy report --target-org my-sandbox
Option 2: Automated Deployment with Validation (Recommended)
cd scripts/
python3 deploy_flow.py \
--source-dir ../flows/ \
--target-org my-sandbox \
--validate-only # Dry run first
# If validation passes, deploy for real
python3 deploy_flow.py \
--source-dir ../flows/ \
--target-org my-sandbox
Common Deployment Errors:
Error: "INVALID_TYPE_ON_FIELD_IN_RECORD"
Cause: Variable type doesn't match field type
Fix: Check variable dataType matches target object field type
Example: Text variable assigned to Number field
Error: "INVALID_FIELD_OR_REFERENCE"
Cause: Referencing non-existent field or variable
Fix: Run validate_flow.py to find undeclared references
Error: "FLOW_ACTIVE_VERSION_NOT_FOUND"
Cause: No active version exists when trying to run Flow
Fix: Activate Flow version after deployment: Setup → Flows → [Flow Name] → Activate
Rollback Procedure:
# If deployment fails, rollback to previous version
sf project deploy start \
--source-dir backups/flows_backup_20250109/ \
--target-org my-sandbox
Reference: Load references/deployment_guide.md for complete sf CLI command reference, advanced deployment workflows, error handling patterns, and rollback procedures.
Follow this end-to-end workflow for error-free Flow implementation:
Phase 1: Design (10-20 minutes)
Phase 2: Build (30-60 minutes)
5. Create Flow in Flow Builder (Setup → Flows → New Flow)
6. Implement business logic following design patterns
7. Test manually in sandbox with sample data
8. Export Flow files (.flow and .flow-meta.xml)
Phase 3: Validate (5 minutes) 9. Run validation script:
python3 scripts/validate_flow.py MyFlow.flow-meta.xml --format markdown > validation_report.md
Phase 4: Deploy (5-10 minutes)
12. Deploy to sandbox with validation:
bash python3 scripts/deploy_flow.py --source-dir flows/ --target-org sandbox --validate-only
13. If validation passes, deploy for real:
bash python3 scripts/deploy_flow.py --source-dir flows/ --target-org sandbox
14. Activate Flow in target org
15. Test Flow in sandbox before promoting to production
Phase 5: Production (10 minutes) 16. Repeat validation and deployment for production org 17. Monitor Flow runs: Setup → Flows → [Flow Name] → Run History 18. Set up Debug Logs if issues occur
$Setup variables for system context: $Setup.User.Id, $Setup.Organization.Namewith sharingAssignment_Calculate_Total_With_Tax not Assignment_1hasError (Boolean), errorMessage (Text)This skill includes comprehensive scripts and reference documentation:
validate_flow.py (Primary Script)
generate_flow_metadata.py
deploy_flow.py
extract_flow_elements.py
variable_reference_patterns.md (Most Important)
flow_types_guide.md
metadata_xml_reference.md
governor_limits_optimization.md
deployment_guide.md
Load these references as needed to inform your Flow development and troubleshooting.
flow_metadata_templates/
deployment_configs/
error_reference_table.md
Note: Always test Flows in a sandbox environment before deploying to production. Use the validation script before every deployment to catch errors early. Follow your organization's change management and deployment processes.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Track and update action item status from natural language updates like 'Seanのメールには返信しておいた' or 'Lu対応予定'. Integrates with daily-comms-ops workflow. Use when managing action items across communication channels.
中文简介正在准备中。当前显示原文说明。
AI活用提案の専門コンサルタントスキル。LLM・AIエージェントの活用事例知識を基に、業界別、部門別、シーン別に最適なAI導入提案を行います。システム化、業務改善、効率化を得意とし、具体的な活用事例、期待効果、導入ステップを含む実践的な提案を提供します。Use when proposing AI/LLM adoption strategies for specific industries, departments, or business scenarios.
中文简介正在准备中。当前显示原文说明。
Generate AI-powered BPO service proposals for Japanese companies in the US market. Use when creating outsourcing proposals with AI service menus, ROI estimation, implementation roadmaps, and bilingual (JA/EN) proposal documents for 在米日系企業向けAI実装.
中文简介正在准备中。当前显示原文说明。
AI(LLM)が生成した日本語テキストの「AI臭」を検出・診断し、人間らしい文章にリライトするスキル。 Use when: 「AIっぽい文章を直して」「人間らしくリライトして」「AI臭を消して」「この文章をもっと自然にして」 「テキストのAI感を減らして」「機械っぽさを取りたい」 "make this sound more human", "remove AI tone", "humanize this text", "detect if this is AI-generated". 6つのAI特有パターン(視覚的マーカー、単調なリズム、マニュアル的構成、非コミット姿勢、抽象語の濫用、 定型メタファー)を正規表現ベースで検出し、0-100のAI臭スコアを算出。3つの人間化技法 (バランスを崩す・客観を崩す・論理を崩す)でリライトを実行する。 Note: 検出スクリプトは日本語テキスト専用。英語テキストの場合はClaude自身がreferences/を参照して分析・リライトする。
中文简介正在准备中。当前显示原文说明。
Generate audit-ready internal control design documents from As-Is business process inventories. Produces control IDs, assertion mappings, procedures, SoD analysis, KPIs, materiality thresholds, and implementation roadmaps. Use when building internal controls for new audit engagements, SOX/J-SOX compliance, or process improvement initiatives.
中文简介正在准备中。当前显示原文说明。
Review audit-related documents (control design documents, bottleneck analyses, requirements definitions, etc.) for quality, scoring them 0-100 with a severity-rated findings list. Use when reviewing audit documents, checking control design quality, or verifying cross-document consistency. Supports documents governed by US GAAP, IFRS, or J-GAAP.
中文简介正在准备中。当前显示原文说明。