Логотип Contributing

Contributing

ОрганізаціяПопулярне
kortix-ai
contributing

The pull request loop for this repo: branch → commit → verify in your own box (local tests + local stack) → PR into dev → demo video recorded with agent-browser on the local stack → `gh --attach` → self-merge → verify on dev. A PR into dev runs no CI unless a person adds the `test` or `preview` label (one run each). Load when opening, updating, or finishing a pull request; when asking what CI runs where; when adding or explaining PR labels or the per-PR preview environment; or when attaching an image or video to a PR, issue, or comment. The PR title and body are the create-pr skill.

Огляд

Видавецьkortix-ai
РепозиторійCompanyOS
Назва навичкиcontributing
Зірки
20.8K
Форки
3.5K
Файли в пакеті
7
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 7

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: kortix-ai. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Contributing у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/contributing
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/.agents/skills/contributing .claude/skills/contributing
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Contributing в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Contributing, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Contributing не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Contributing: the pull request loop

Every change reaches dev through a pull request. A pull request into dev runs no GitHub Actions job: your development machine runs every test, the stack, and the demo before the PR opens, and the PR is mergeable at once. Each PR carries a demo video of the change, recorded with agent-browser against your local stack. The video is uploaded with gh --attach and appears in the PR body. This skill is that loop, end to end.

AGENTS.md owns the policy: canonical branches, when to self-merge, and the customer-data rule. This skill is the procedure. Read AGENTS.md → "First, at session start" and "Default delivery" before step 1 if you have not.

Preflight (once per machine)

bash
gh --version                 # ≥ 2.99.0: first release with --attach
agent-browser --version      # installed: npm i -g agent-browser && agent-browser install
agent-browser doctor         # "Recording" must pass: ffmpeg with libvpx + libx264
gh auth status               # token prefix gho_, ghp_, or github_pat_ (see attachments reference)

Done when all four pass. A ghs_ or ghu_ token cannot attach. See references/attachments.md → "Token types".

Steps

1. Branch and worktree

Join the canonical branch for the work, or create one: pnpm worktree create --name <slug> --yes --no-start (the worktree skill). All edits and runs happen under ../suna-<slug>.

Done when git branch --show-current prints the canonical branch inside its worktree.

2. Commit

  • Use the Conventional Commits subject style that git log shows: fix(sandbox): …, feat(web): …, refactor(api): …, docs(repo): ….
  • pnpm install arms .githooks. The hooks encrypt staged .env files, block plaintext secrets, refuse blocked customer terms, and refuse a crash dump or a file over 20 MB. When a hook fires, fix the content and commit again. Keep the hooks on every commit (never --no-verify).
  • Stage files by name: git add <path> <path>. Never git add -A, git add ., or git commit -a outside one named directory. A blanket add once committed a worker's core dump, and a core dump holds every secret in the process environment.
  • Ship the tests with the behaviour change (the testing skill).

Done when the commit exists and the hooks passed.

3. Verify in your box

Run T0 (tsc and lint for the packages you touched) and the one test you wrote or changed (the testing skill). On a Mac, suite-wide pnpm test modes exit 2: the suite runs in CI. A diff that no test reads (docs, a skill, a standalone script) needs no run. Then run the changed behaviour on your worktree's stack: pnpm worktree start <slug> prints the web and API ports. Exercise the real surface: the HTTP route with curl, the real CLI process, or the page with agent-browser. No CI lane runs these for you before the merge. No hook or merge gate requires a test run on a PR into dev. The attestation system was removed on 2026-10-16: delete any tests/attestations/ or tests/test-attestation.json file that an older branch or a merge brings back.

Done when the relevant checks passed, with output captured. Keep compact fenced commands and actual runner summaries under "Quick verification" when evidence gates require them (collapsed blocks are allowed). Link verbose logs; state failed, blocked or skipped checks.

4. Record the demo video on the local stack

The demo is a short video of the changed behaviour on a real surface: your worktree's web app (http://localhost:<web port>). Run it as a bash script from the repo root. zsh does not word-split, so a command stored in a variable fails there.

bash
#!/usr/bin/env bash
set -euo pipefail
S=http://localhost:<web port>        # from `pnpm worktree start <slug>` or `pnpm worktree ls`
SESSION=$(agent-browser session id --scope worktree --prefix pr-demo)
ab() { agent-browser --session "$SESSION" "$@"; }

# Sign in before recording, so the video never shows an auth form.
.agents/skills/contributing/scripts/preview-sign-in.sh "$S" "$SESSION"   # prints the synthetic email

# Absolute paths only: the agent-browser daemon is shared by every session on
# the machine and resolves a relative path against the cwd of whichever
# session started it, which can be another worktree.
OUT="$PWD/output/pr"
mkdir -p "$OUT"
ab set viewport 1440 900
ab open "$S/<changed route>"
ab wait --load networkidle          # record a rendered page, not a hydrating one
ab record start "$OUT/demo.mp4" --cursor
#   Drive the change: `ab snapshot -i`, then `ab click @eN`, `ab fill @eN …`.
#   Put `ab wait 800` between actions so a person can follow.
ab record stop
ab close

preview-sign-in.sh creates pr-demo-<epoch>@example.test and requests the sign-in email. On a local origin it reads the link or code from local Supabase's Mailpit (127.0.0.1:54324), and it waits until the browser leaves /auth. Load agent-browser skills get core for the full command set.

Rules for the video:

  • Show the change, from the starting state to the visible result, in under 60 s. One flow per video. Use more videos for more flows.
  • Use synthetic data only (@example.test emails, invented names). The repo is public, and every attachment URL is public.
  • .mp4 plays in every browser. Keep each file under 100 MB (ls -lh output/pr/).
  • For a change with no UI (API, CLI, infra), record the terminal output or the rendered result on GitHub. For example, open the changed file on the branch at https://github.com/kortix-ai/CompanyOS/blob/<branch>/<path>. Or state in the PR why a video adds nothing.

Look at the video before you attach it. Extract four frames and read them:

bash
for t in 1 5 10 15; do ffmpeg -v error -y -ss $t -i output/pr/demo.mp4 -frames:v 1 -vf scale=720:-1 output/pr/frame-$t.png; done

Blank frames mean the page had not rendered. An oversized pointer means the page's CSS broke the --cursor overlay: record that page without --cursor.

Done when the frames show the change from start to result, with only synthetic data.

5. Open the PR

bash
git push -u origin HEAD
gh pr create --base dev \
  --title "<type>(<scope>): <outcome a user notices>" --body-file output/pr/body.md \
  --attach ./output/pr/demo.mp4
  • Write the title and body.md with the create-pr skill. It owns the PR text: English only, written for a reviewer who decides "merge or iterate" without the diff, in the two sections of .github/pull_request_template.md: ## Demo video, then ## Quick verification with a high-level Outcome: bullet first, then a few actionable checks. Link detailed commands/output, design detail, RCAs and risk/rollback notes in PR comments or evidence. Testing, safety and reviewer/merge gates are unchanged. The line ![Demo](./output/pr/demo.mp4) holds the video; --attach uploads it and rewrites the path in one step, so skip step 6.
  • Put body.md and the recordings in the gitignored output/pr/ directory. Keep them out of tracked paths.
  • Open it as a draft (--draft) only when the work is not finished. A verified change goes straight to review-ready.
  • The PR runs no CI job. Add test or preview only when you need that one explicit run. See "What runs where" and "Labels" below.

Done when gh pr view --json url prints the PR.

6. Attach the video to the PR

bash
# body.md contains the line:  ![Demo](./output/pr/demo.mp4)
gh pr edit <pr> --body-file output/pr/body.md --attach ./output/pr/demo.mp4

gh uploads the file to GitHub and replaces the local reference in the body with the uploaded URL. The URL renders as a video player. Run the command from the directory the body's relative paths resolve from: the repo root. The full rules and failure modes are in references/attachments.md.

Done when the body has the asset URL and no local link is left:

bash
gh pr view <pr> --json body --jq .body | grep -oE 'https://github.com/user-attachments/assets/[0-9a-f-]+'  # ≥ 1 URL
gh pr view <pr> --json body --jq .body | grep -cE '\]\(\./output/'                                        # 0

7. Keep it current

  • Keep the PR mergeable: gh pr view <pr> --json mergeable must not say CONFLICTING. Merge origin/dev into the branch and push.
  • When the behaviour in the video changes, record the video again and repeat step 6.
  • Edit the body after an upload from the live copy (create-pr → "Update an existing PR").
  • Merge origin/dev into the branch daily. Git's rename detection carries dev's edits through moved files. GitHub's conflict check does not, so push the merge.

8. Merge and hand off

  • Self-merge when the change is verified (AGENTS.md → "Default delivery", rule 5): the local checks passed and the PR is mergeable. Do not wait for the user's approval, and do not wait for a CI check: none runs. gh pr merge <pr> --squash.
  • Right before the merge, run scripts/check-strix-review.sh <pr>. Strix posts a security review about a minute after a PR opens. Exit 2: no finished review yet, so wait and run it again. Exit 1: the review lists findings to fix before merging. Fix each one, push, re-run the review from its link, and check again. A review of an older commit passes with a warning; re-run it after a push that changes security-relevant code.
  • A PR that adds a file under packages/db/migrations/: run sh scripts/check-migration-order.sh --pr <pr> right before gh pr merge. It fetches origin/dev and the PR head, and exits 1 when a new migration sorts at or before dev's newest. The pre-push hook checked against dev as it was at your last push; dev can have a newer migration by merge time, and gh pr merge runs no hook. On exit 1, rename the file to a fresh timestamp, push, and check again. The "Migrations are sequential" job on the push to dev is the backstop after the merge, and a missed one stops every migrate-db on dev.
  • A push to dev does not deploy dev and does not run Tests. Deploy deliberately: gh workflow run deploy-dev.yml -f surface=changed (changed diffs each surface against the commit it serves, so it ships every merge since that surface's last deploy and retries a surface whose last roll failed; all forces every surface; frontend builds the web app only). A dispatch from a branch (--ref <branch>) never migrates the dev database and never rolls the dev API. Follow the run to the "Live on dev" comment, then verify the change on dev.
  • Report the PR URL, the merge SHA, the local test commands and their results, the dev verification, and anything still unverified.
  • Merging into staging or prod, and every release step, still needs the user's explicit approval (the kortix-release skill).

What runs where

EventWorkflowsBlocks?
PR into devnone. Adding test runs the Tests lanes once (~20 min); adding preview deploys once (~7 min), with no tests. A push re-runs neither.no
Push to dev (the merge)no Tests lane. secret-scan, secrets-guard, path-gated DB Migrations, i18n-catalogs, deploy-api-router-dev, Terraform Apply Global; requested mobile-input-gated Mobile TestFlight build (production API, TestFlight only).no
Dispatch / schedule on devDeploy Dev and Desktop: dispatch only. Tests: nightly (a red night comments on the commit). drata: daily. CI, CodeQL: weekly.no
PR into stagingnone: Promote to Production opens and merges itno
PR into prod (release PR)the release suite, once: tests-release.yml (contract lanes, deployed API smoke, browser journeys against staging) plus CI, CodeQL, secret-scan, secrets-guard, path-gated DB Migrations, Terraform CI, Security Scan, i18n-catalogs, drata. full suite + quality gates requires every one green and is the only required check in the repo.yes, the only gate

tests/unit/sandbox-workflow.test.ts fails when a workflow other than the label-gated tests.yml and deploy-preview.yml triggers on a pull request into dev. Put a new check in the release suite on the PR into prod (one run per release tree), a schedule, or a dispatch. Never on PRs into dev, and never on the push to dev unless it is a seconds-long guard. GitHub-hosted runners are free on this public repo; the limit is the organization's concurrent-job cap, so a new push: dev workflow must queue (cancel-in-progress: false per ref), never run once per merge in parallel.

Labels

LabelEffectWho can add it
testRuns the Tests lanes (~20 min) once, on the head SHA when the label is added. A push does not re-run it; remove and re-add the label to run again.Triage access.
previewBuilds one self-host environment for the branch on Platinum (~7 min), once, and runs no tests. A push does not redeploy. To deploy a newer head, dispatch: gh workflow run deploy-preview.yml -f pr_number=<N> -f run_tests=false (redeploy only), or without run_tests=false to also run pnpm test -- --target-full (40–80 min). Never remove and re-add the label to redeploy: removing it tears the environment down and deletes its Postgres volume. See references/preview-environments.md.Needs write access, and a PR from a branch of this repo (not a fork).
i18n-reorderLets i18n-catalogs.yml accept an intentional key reorder in apps/web/translations/*.json on a release PR. On dev, the same reorder needs I18N_REORDER=1 past .githooks/pre-commit and the commit trailer I18n-Reorder: intentional.Triage access.

Both labels are explicit, rare requests. Never add one by default, from a template, or from automation.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Contributing?

The pull request loop for this repo: branch → commit → verify in your own box (local tests + local stack) → PR into dev → demo video recorded with agent-browser on the local stack → `gh --attach` → self-merge → verify on dev. A PR into dev runs no CI unless a person adds the `test` or `preview` label (one run each). Load when opening, updating, or finishing a pull request; when asking what CI runs where; when adding or explaining PR labels or the per-PR preview environment; or when attaching an image or video to a PR, issue, or comment. The PR title and body are the create-pr skill.

Навіщо використовувати Contributing у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Contributing — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Contributing у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/contributing. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Contributing?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Contributing?

Зі скількома забажаєте. У TypingMind ви можете використовувати Contributing із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Contributing?

На GitHub цю навичку публікує kortix-ai. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇