Install
$ agentstack add skill-pranavnagrecha-awesomesalesforceskills-analytics-requirements-gathering ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Analytics Requirements Gathering
This skill activates when a practitioner needs to gather, document, and validate CRM Analytics requirements before any dataset, dataflow, or dashboard is built. It produces a structured requirements package — data source inventory, audience matrix, transformation requirements, and drill-down specifications — that the analytics developer uses as the authoritative spec.
Before Starting
Gather this context before working on anything in this domain:
- The first question to answer: Do stakeholders need CRM Analytics or standard Reports and Dashboards? CRM Analytics is appropriate for cross-object aggregation, predictive insights, and multi-audience views. For simple single-object reports with no cross-object joins, standard Reports are the correct (and license-free) choice.
- CRM Analytics requires Salesforce CRM Analytics Growth or Plus license. Confirm the org has the required license before committing to CRM Analytics.
- The most common wrong assumption: practitioners assume synced Salesforce objects are immediately usable as CRM Analytics data sources without a dataset step. Every data source (Salesforce object sync, external file, Data Cloud Direct) requires a dataflow or recipe to create a dataset before it can be queried.
- Requirements must capture data source type (Salesforce object sync vs external connector vs Data Cloud direct vs CSV/External Data API) — this determines whether a recipe or a dataflow runs the transformation.
Core Concepts
Data Source Types
CRM Analytics has four distinct data source types with different setup requirements:
| Source type | Setup | |---|---| | Salesforce object sync | Direct connection to Salesforce standard and custom objects; configured in Data Manager; requires a dataflow or recipe to create a dataset | | External connector | Snowflake, AWS S3, Google BigQuery, etc.; requires Named Credential and Connector setup; data pulled via recipe | | Data Cloud Direct | Real-time query of Data Cloud Data Model Objects (DMOs) without dataset creation; available in Spring '25+ for specific query patterns; does not support all SAQL operations | | CSV/External Data API | Static file upload; creates a dataset directly; requires manual or API-driven refresh |
Requirements must specify which type each data source is — the implementation path differs significantly.
Audience-Specific Views
CRM Analytics supports multiple access patterns for different audiences:
- Sharing inheritance — Row-level security inherited from Salesforce record sharing
- Predicate-based row-level security — Custom SAQL predicates filtering data to the viewing user's role or territory
- Separate dashboards per audience — Different dashboard designs for different roles (e.g., VP dashboard vs rep dashboard)
Requirements must document which rows each audience can see and whether they need different visualizations or just different filtered views of the same data.
Transformation Requirements
Raw Salesforce object data often requires transformation before it is useful in CRM Analytics:
- Field remapping and renaming for consistent naming across datasets
- Computed fields (revenue tiers, fiscal period labels, region groupings)
- Dataset joins (Account + Opportunity joined dataset)
- Date dimension augmentation (fiscal year/quarter derived from CloseDate)
Requirements must specify each transformation explicitly — the developer cannot infer them from field names alone.
Common Patterns
Pattern: Data Source Mapping Matrix
When to use: At the start of every CRM Analytics requirements engagement — before any dataset or recipe is designed.
How it works:
- List all data sources stakeholders need in the analytics
- For each source: identify the type (Salesforce object / external connector / Data Cloud / CSV), the connection mechanism, and the refresh frequency required
- For Salesforce objects: list all fields needed (not just the objects) — unnecessary fields increase dataset size and dataflow runtime
- For external connectors: confirm Named Credential and connector setup exists or is in scope
Why not the alternative: Leaving data source type unspecified causes the developer to choose the connection mechanism arbitrarily, which leads to wrong refresh cadence or missing incremental update configuration.
Pattern: Audience Matrix
When to use: When more than one user role will access the analytics and they should see different data or layouts.
How it works:
- List all user roles/personas
- For each role: document what data rows they can see (all data / own territory / direct reports / etc.)
- For each role: document whether they need a different dashboard layout or just a filtered view of a shared dashboard
- Specify the row-level security mechanism: sharing inheritance, SAQL predicate, or separate org-wide defaults
Decision Guidance
| Situation | Recommended Approach | Reason | |---|---|---| | Single-object reporting with filters and grouping | Standard Reports and Dashboards | No CRM Analytics license required; covers single-object use cases natively | | Cross-object aggregation (Opp + Account + Activity) | CRM Analytics | Standard Reports cannot join three or more objects efficiently | | Predictive scoring or trend analysis | CRM Analytics with Einstein Discovery | Predictive capabilities require CRM Analytics license | | Data from external databases (Snowflake, BigQuery) | CRM Analytics external connector | External data cannot feed standard Reports | | Real-time Data Cloud data | Data Cloud Direct connection in CRM Analytics | Spring '25+ feature; check if applicable query patterns are supported | | Different views for VP vs individual rep | CRM Analytics with audience-specific predicate or separate dashboards | Standard Dashboards have limited row-level security |
Recommended Workflow
Step-by-step instructions for an AI agent or practitioner working on this task:
- Determine whether CRM Analytics is required or if standard Reports can serve the need — document this decision with the rationale.
- Confirm CRM Analytics license availability in the org before proceeding.
- List all reporting questions stakeholders need the analytics to answer — these drive the data model.
- For each reporting question: identify the data source type (Salesforce object sync / external connector / Data Cloud / CSV) and document it in the data source matrix.
- For each data source: list the specific fields needed (not just the object) — unnecessary fields increase dataflow runtime.
- Document transformation requirements: joins needed, computed fields, date dimension derivations, and field renames for consistency.
- Build the audience matrix: list all user roles, what rows each can see, and whether they need different layouts.
- Specify drill-down paths: for each summary visualization, document what level of detail users should be able to drill into.
- Review with stakeholders and the developer to confirm the requirements are complete and buildable before dataset design begins.
Review Checklist
Run through these before marking work in this area complete:
- [ ] CRM Analytics vs standard Reports decision documented with rationale
- [ ] CRM Analytics license confirmed
- [ ] All data sources identified with type (object sync / external / Data Cloud / CSV)
- [ ] Field-level requirements documented for each data source (not just object names)
- [ ] Transformation requirements specified (joins, computed fields, date dimensions)
- [ ] Audience matrix complete with row-level security specification
- [ ] Drill-down paths documented for each summary visualization
- [ ] Refresh cadence specified for each data source
Salesforce-Specific Gotchas
Non-obvious platform behaviors that cause real production problems:
- Synced objects are not immediately usable — a dataset step is required — Enabling Salesforce object sync in CRM Analytics Data Manager does not create a queryable dataset. The sync brings data into the analytics storage layer, but a dataflow or recipe must run to create a dataset from the synced object. Requirements that say "use the Opportunity object" without specifying the dataset creation step leave a gap in the developer's understanding.
- Data Cloud Direct query does not support all SAQL operations — Spring '25+ Data Cloud Direct connection allows real-time queries of Data Cloud DMOs without a dataset, but not all SAQL operations are supported (no recipe transforms, limited GROUP BY patterns). Requirements that specify Data Cloud Direct must confirm that the required query patterns are supported.
- External connector data does not support incremental refresh by default — External connector data sources pull full datasets on each recipe run unless incremental refresh is explicitly configured. Large external tables (millions of rows) run slowly with full refreshes. Requirements must specify whether incremental refresh is needed and whether the external source supports a reliable watermark field.
Output Artifacts
| Artifact | Description | |---|---| | CRM Analytics requirements document | Data source inventory, transformation needs, audience matrix, drill-down paths | | Data source mapping matrix | Per-source table of type, connection, fields needed, refresh cadence | | Audience matrix | User roles mapped to row-level security rules and dashboard view requirements | | CRM Analytics vs Reports decision record | Documented decision with rationale and license confirmation |
Related Skills
admin/analytics-kpi-definition— use after requirements gathering to define KPI formulas and targets before builddata/saql-query-development— downstream implementation skill using requirements from this documentadmin/requirements-gathering-for-sf— general Salesforce requirements gathering companion skill
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: PranavNagrecha
- Source: PranavNagrecha/AwesomeSalesforceSkills
- License: Apache-2.0
- Homepage: https://pypi.org/project/sfskills-mcp/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.