Campeonato Brasileiro
Use this skill to answer Brasileirão questions and build automation logic from the package's normalized data. Prefer the no-install GitHub CLI command below unless MCP tools are already visible in the current agent session.
Fast Path
For common read-only questions, use the GitHub-backed CLI directly. It works even when the npm latest release has not caught up and nothing is installed globally:
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro standings a --format markdown
For "current table" without a Serie, assume Série A and say that assumption. Return the command's markdown table directly, trimming only if the user asked for a summary. Do not run extra metadata commands unless the user asks for source details.
Tool Order
- If
brasileirao_*MCP tools are visible in the current tool list, use them:brasileirao_find_teamsfor ambiguous names, acronyms or ids.brasileirao_get_team_snapshotfor a team-centric view.brasileirao_check_team_triggerfor automation conditions.brasileirao_get_standingsandbrasileirao_get_roundsfor general context.
- If MCP tools are not visible, do not probe for MCP. Use
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro .... - If
campeonato-brasileirois already on PATH, it is acceptable to use it, but do not require a global install. - In code, import
campeonato-brasileiro-apiand callfindTeams,getTeamSnapshot, orcheckTeamResult.
Useful no-install commands:
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro standings a --format markdown
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro standings a --json
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro rounds a --json
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro teams a Corinthians --json
npm exec --yes --package=github:ezefranca/campeonato-brasileiro-api -- campeonato-brasileiro trigger a Flamengo --condition won --json
Avoid these brittle fallbacks:
npx campeonato-brasileiro-api ...while npmlatestis older than2.1.0.require('campeonato-brasileiro-api')from annpm exectransient shell; Node may not resolve that package path reliably.- Installing into a temporary directory unless every documented command above fails.
Automation Workflow
For requests like "message me when Corinthians won" or "book a hotel when Flamengo wins":
- Identify the Serie. If missing or ambiguous, ask for it or search likely series with
findTeams. - Resolve the team with
findTeams; prefer exact id/name/acronym matches. - Call
checkTeamResult(serie, team, condition)or the MCP equivalent. - Treat
trigger.shouldFire === trueas the only positive signal to perform the user's requested external action. - Treat
trigger.stateas operational state:triggered: condition is satisfied.pending: a relevant match is live or scheduled and may satisfy the condition later.not_satisfied: current match is settled but does not satisfy the condition.no_match: team is not in the active rodada payload.
- Do not perform external side effects such as sending messages, booking travel or purchasing anything unless the host workflow has permission.
Data Limits
The upstream GE source exposes current standings and the active rodada. Do not claim full historical coverage unless the user provides another source. For Série D, pass group when the user needs a specific group.
Read references/domain.md when you need exact field names, condition semantics, CLI examples, or MCP setup snippets.