home / skills / trpc-group / trpc-agent-go / recommend_poi
This skill provides deterministic city POI recommendations with a structured JSON output, guiding users to top attractions efficiently.
npx playbooks add skill trpc-group/trpc-agent-go --skill recommend_poiReview the files below or copy the command above to add this skill to your agents.
---
name: recommend_poi
description: Recommend a POI in a city (schema + deterministic result).
---
# recommend_poi
This skill is used by the dynamic structured output demo.
## Output JSON Schema
```json
{
"type": "object",
"properties": {
"poi": {
"type": "string",
"description": "Point of interest"
},
"city": {
"type": "string",
"description": "City name"
},
"score": {
"type": "integer",
"description": "A deterministic score"
}
},
"required": [
"poi",
"city",
"score"
],
"additionalProperties": false
}
```
## Commands
Print JSON result to stdout:
```bash
cat result.json
```
This skill recommends a single point of interest (POI) for a specified city and returns a deterministic score. It outputs a compact JSON object with fields for poi, city, and score. The design prioritizes reproducible results suitable for demos and structured-output pipelines.
The skill inspects the provided city input and maps it to a deterministic POI choice using a fixed rule set. It computes an integer score with a repeatable formula so the same city always yields the same poi and score. The output strictly follows the JSON schema: poi, city, and score are returned and no extra properties are included.
Is the recommendation random?
No. The recommendation and score are deterministic and repeatable for the same city.
Can I get multiple POIs or additional metadata?
This skill returns a single POI and score only. For multiple results or richer metadata, layer additional tools or services.