Product Station · Dev & ops

GitHub

Template

GitHub hosts code: repositories, issues, and the pull requests a team reviews and merges.

Thanks to this station, any AI agent can also safely read code, open pull requests and comment on them. A pull request never starts from main, and a merge needs a human's review.

Opened to agents, through a station

Source

API operations

github-repos

  • readFilereadmapped
  • openPullRequestwritemapped
  • commentOnPullRequestwritemapped
  • mergePullRequestwritemapped

Not mapped

  • pushToMainnot mapped

An operation the station does not map is out of every agent's reach.

Capabilities

MCP
Skills and playbooks agents can call
  • read-fileskill

    Read file.

    Calls · readFile

  • open-pull-requestskill

    Open pull request.

    Calls · openPullRequest

  • comment-on-pull-requestskill

    Comment on pull request.

    Calls · commentOnPullRequest

  • merge-pull-requestskill

    Merge pull request.

    Calls · mergePullRequest

  • propose-a-changeplaybook

    In order: read-file, then open-pull-request, then comment-on-pull-request.

    Steps · read-file, open-pull-request, comment-on-pull-request

Policies

Checked by the station

At each access

  • The contributor profile may call readFile, openPullRequest, commentOnPullRequest, mergePullRequest; nothing else.contributor

At each action

  • A pull request always starts from a branch, never from main. Otherwise refused.branch-only
  • A merge needs a human's review.human-for-merge

Scenario Replays

An agent works through the station. Simulated scenarios, no real data, no key required.

Open a pull request

What you will see: The agent proposes, a human decides: everything goes through a branch and a review.

Agent connected to the station through MCP
  1. HumanFix the typo in the README and open a PR.
  2. AgentI'll read the file, then propose the fix on a branch.
  3. MCP callreadFile(path: "README.md")
  4. StationFile read.OKRule applied: profile contributor
  5. MCP callopenPullRequest(branch: "fix/readme-typo")
  6. StationPull request opened from a branch. A human will review it before any merge.OKRule applied: branch-only

The configuration in detail

station_config.yamlRead the docs →

Everything the station does fits in this file. The replay above applies it, and a copy starts from it. The values are examples to adapt, not a recommendation.

station:
  id: github
  kind: product
  policies:
    - {policy: branch-only, at: submit}
    - {policy: human-for-merge, at: submit}

global:
  language: en
  timezone: Europe/Paris

apis:
  - id: github-repos
    operations:
      readFile:            {access: read}
      openPullRequest:     {access: write, risk: medium}
      commentOnPullRequest: {access: write, risk: low}
      mergePullRequest:    {access: write, risk: high}
    # not listed, so not available to the agent:
    # pushToMain

profiles:
  contributor:
    allow: [readFile, openPullRequest, commentOnPullRequest, mergePullRequest]

policies:
  branch-only:
    type: rule
    when: "action == openPullRequest and branch == main"
    effect: deny
    reason: "A pull request always starts from a branch, never from main."
  human-for-merge:
    type: rule
    when: "action == mergePullRequest"
    effect: needs-human
    reason: "A merge needs a human's review."

skills:
  - {id: read-file, uses: readFile}
  - {id: open-pull-request, uses: openPullRequest}
  - {id: comment-on-pull-request, uses: commentOnPullRequest}
  - {id: merge-pull-request, uses: mergePullRequest}

playbooks:
  - id: propose-a-change
    tasks: [read-file, open-pull-request, comment-on-pull-request]