Examples
llms.txt lists every page for an agent
Show the whole prompt
Read https://intentius.io/chant/lexicons/github/examples/.
Write the workflow I describe in src/, starting from the closest example under lexicons/github/examples/ in https://github.com/INTENTIUS/chant.
Run `npx chant build src --lexicon github -o .github/workflows/ci.yml` and `npx chant lint src` until both pass, and open a pull request with the source and the workflow.
Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.Optional: hand this page to your coding agent
Read https://intentius.io/chant/lexicons/github/examples/.Write the workflow I describe in src/, starting from the closest example under lexicons/github/examples/ in https://github.com/INTENTIUS/chant.Run `npx chant build src --lexicon github -o .github/workflows/ci.yml` and `npx chant lint src` until both pass, and open a pull request with the source and the workflow.Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.Runnable examples live in the lexicon’s examples/ directory. Clone the repo and try them:
cd examples/getting-startednpm installchant build # produces .github/workflows/ci.ymlchant lint # runs lint rulesnpx vitest run # run the testsGetting Started
Section titled “Getting Started”examples/getting-started/: a CI workflow with build and test steps for a Node.js project.
src/└── ci.ts # Workflow + Job definitionsSource
Section titled “Source”import { Workflow, Job, Step, Checkout, SetupNode } from "@intentius/chant-lexicon-github";
export const workflow = new Workflow({ name: "CI", on: { push: { branches: ["main"] }, pull_request: { branches: ["main"] }, }, permissions: { contents: "read" },});
export const build = new Job({ "runs-on": "ubuntu-latest", timeoutMinutes: 15, steps: [ Checkout({}).step, SetupNode({ nodeVersion: "22", cache: "npm" }).step, new Step({ name: "Install", run: "npm ci" }), new Step({ name: "Build", run: "npm run build" }), new Step({ name: "Test", run: "npm test" }), ],});Generated output
Section titled “Generated output”chant build produces .github/workflows/ci.yml:
name: CIon: push: branches: - main pull_request: branches: - mainpermissions: contents: readjobs: build: runs-on: ubuntu-latest timeout-minutes: 15 steps: - name: Checkout uses: actions/checkout@v7 - name: Setup Node.js uses: actions/setup-node@v7 with: node-version: '22' cache: npm - name: Install run: npm ci - name: Build run: npm run build - name: Test run: npm testPatterns demonstrated:
- Typed composites —
Checkout({})andSetupNode({...})instead of rawuses:strings - Permissions — explicit
contents: readfollowing least-privilege - Timeout —
timeoutMinutes: 15prevents runaway jobs - Trigger scoping — push and PR on
mainonly