The /agentforce-observe skill creates test cases during its Phase 3.7 after fixing issues found through STDM session analysis. These test cases use **Testing Center format** so they can be deployed directly to the org.
### Test Case Convention
Test cases from /agentforce-observe follow Testing Center YAML format:
```yaml
# tests/<AgentApiName>-regression.yaml
name: "<AgentName> Regression Tests"
subjectType: AGENT
subjectName: <AgentApiName>
testCases:
- utterance: "find me a home in San Jose"
expectedTopic: home_search
expectedActions:
- search_homes_and_communities
- utterance: "I have a legal dispute"
expectedTopic: escalation
expectedActions:
- transfer_to_agent
```
### Deploying Cross-Skill Tests
When /agentforce-observe generates test cases, deploy them using Mode B:
<AgentApiName>-testing-center.yaml # Full smoke suite (Mode B -- Testing Center)
<AgentApiName>-regression.yaml # Regression tests from /agentforce-observe (Mode B)
<AgentApiName>-smoke.yaml # Ad-hoc smoke tests (Mode A -- preview only)
```
Both this skill and /agentforce-observe write to the `tests/` directory using the agent's API name as prefix. Testing Center files (`-testing-center.yaml`, `-regression.yaml`) use the `name/subjectType/subjectName/testCases` format.