Table of Contents
Install
🌐 English · Dansk · Bahasa Melayu
The framework is added to your project as a git submodule at
framework/. It pulls in the QC checklists as a nested submodule at
framework/qc/.
1. Prerequisites
| Need | Why |
|---|---|
git and bash (on Windows: Git for Windows, use Git Bash) |
Every script and hook is bash |
SSH access to git.tirsystem.com (port 10022): an account with your SSH key added |
The framework repository is private and is downloaded over SSH |
perl, awk, sed, grep, realpath, xargs |
Standard in Git Bash, Linux and macOS |
curl and jq |
Only for sync-project.sh --apply on Gitea (gh replaces them on GitHub) |
shellcheck, shfmt |
Only if you write or review shell scripts |
An AI coding agent that reads AGENTS.md and .agents/skills/ (Claude Code, Codex CLI, ...) |
The skills are the main interface |
2. Add the framework to your project
SSH access required. The framework is a private repository. Add your SSH key to your
git.tirsystem.comaccount before you start; HTTPS cloning is not supported for it.
In an existing repository:
git submodule add ssh://git@git.tirsystem.com:10022/TirSystem/sqa-qc-framework.git framework
git -C framework checkout <tag> # pin a released version, e.g. v0.6.2
git -C framework submodule update --init --recursive # also fetches framework/qc
Check that framework/qc/ is not empty. No review can start without it.
Cloning a project that already uses it:
git clone --recurse-submodules <project-url>
# or, if you cloned without it:
git submodule update --init --recursive
A ZIP download from the git host never contains submodules; use git.
3. Install skills and hooks
bash framework/scripts/install-skills.sh --dry-run # preview, changes nothing
bash framework/scripts/install-skills.sh # copy to .agents/ and .claude/
bash framework/scripts/install-git-hooks.sh # block commits directly on main
Optional gates (each is off until you turn it on):
bash framework/scripts/install-git-hooks.sh --enable-plan-gate # src/ and tests/ commits need a Task: MIL-NNN#N trailer
bash framework/scripts/install-git-hooks.sh --enable-language-check # PO documents need a Language and Domain row
bash framework/scripts/install-git-hooks.sh --enable-readme-check # READMEs follow the template
Edit skills in framework/.agents/skills/, never in the installed copies, and
re-run install-skills.sh after every framework update.
4. Create the project's own files
cp framework/templates/AGENTS-template.md AGENTS.md
cp framework/templates/README-template.md README.md
cp framework/templates/.env.example .env.example
mkdir -p docs
cp framework/templates/artifact-registry-template.md docs/artifact-registry.md
Then open docs/artifact-registry.md and set the Product Owner's language
and domain in its Languages section. Every PO-language document states them
and the checks read them from there.
The tokens in .env
A script or the AI agent that calls the git host needs a token. The tokens live
in .env at the project root, which is gitignored: copy .env.example to
.env, fill it in, and never commit or print it. Use one token for each job, so
that each has the smallest scope that works:
| Variable | Used for | Scope on Gitea |
|---|---|---|
TOKEN_FOR_GITEA_ISSUES |
sync-project.sh --apply: creating and updating issues and milestones |
read and write on issues |
TOKEN_FOR_GITEA_REPO |
push, pull requests and merge | read and write on the repository |
The workflow sync-milestones.yml of git-workflows uses both as CI secrets: TOKEN_FOR_GITEA_REPO
checks out the project and the private framework submodule, and
TOKEN_FOR_GITEA_ISSUES publishes. A checkout with the issues token alone fails
with 403 Forbidden.
The names follow TOKEN_FOR_<host>_<purpose>, like the secrets of the shared
workflows. Gitea does not accept names that start with GITEA_ or GITHUB_, so
GITEA_TOKEN and SYNC_TOKEN are older names: the sync script still reads them
when TOKEN_FOR_GITEA_ISSUES is empty. A token is a personal access token
(Settings, Applications), never a deploy key: deploy keys only authenticate git
over SSH, not the API. On GitHub, run gh auth login instead.
5. Check it works
bash framework/scripts/check-languages.sh --list
bash framework/scripts/new-artifact.sh BC # scaffolds docs/business-case.md
Then ask your agent: "Where does this project stand and what is the next step?"
It should use the create-project skill and run the intake.
Continue with the AI Prompt Template.
Updating the framework
One command moves the project to a released tag, shows the changelog and what
the AGENTS template changed, re-runs install-skills.sh and stages the result:
bash framework/scripts/update-framework.sh # lists the newest tags
bash framework/scripts/update-framework.sh <new-tag> # adopts it; review, then commit
Options: --dry-run shows what would be done, --commit commits as
Adopt framework <new-tag> (not on main), --agents-overwrite replaces
AGENTS.md with the new template. AGENTS.md is your edited copy, so it is
not overwritten: an unedited one is updated, an edited one gets the new
template as AGENTS-template.new.md to merge by hand. The script never pushes.
What it does, if you prefer the steps by hand:
git -C framework fetch --tags
git -C framework checkout <new-tag>
git -C framework submodule update --init --recursive # framework/qc
bash framework/scripts/install-skills.sh
git add framework && git commit -m "Adopt framework <new-tag>"
Read the CHANGELOG between your tag and the new one first.
AI prompt: Check whether workflows need updating
After you move the framework pin, the workflows of your project may be behind:
a workflow of TirSystem/git-workflows delivered to it, or a call of a shared
workflow at an older tag. Give this prompt to your
agent. It only reads and reports; it changes nothing until you answer.
Check whether workflows need updating.
1. List the workflows of this project in .gitea/workflows/ and .github/workflows/.
2. For each workflow that was copied from TirSystem/git-workflows, compare it
with the current file there and say what differs.
3. For each call of a shared workflow (uses: TirSystem/git-workflows/...@<ref>),
say which tag it uses and which is the latest release of TirSystem/git-workflows
(read its CHANGELOG and upgrading guide). A new major version is a breaking
change: say what it changes for this project.
4. Read the framework CHANGELOG between the pinned tag and the latest tag, and
say which entries concern workflows, secrets or inputs.
5. Report a table: workflow | what is out of date | recommended change | risk.
Do not edit any file. Do not commit. Ask me which changes to make, and make
them on a branch, one pull request, when I say so.
Typical findings: a sync-milestones.yml that differs
from the one in git-workflows, a @v1 call when the repository has moved to @v2, and a
tools-ref that no longer names the same tag as the workflow it is pinned
with.
Optional: publish accepted milestones from CI
Take sync-milestones.yml from TirSystem/git-workflows (the framework keeps no
copy). Installing it is the standing authorisation to publish: from then on
a push to main creates or updates the Milestone and Issues of every accepted,
reviewed milestone, and never closes or deletes anything. Run it once by hand
first with dry_run on.
The workflow calls framework/scripts/ci-publish-milestones.sh, so the pinned
framework must be v0.6.0 or later.
Troubleshooting
| Symptom | Fix |
|---|---|
framework/qc/ is empty |
git submodule update --init --recursive |
Permission denied (publickey) |
Add your SSH key to your git.tirsystem.com account (see Prerequisites) |
| Skills not found by the agent | Re-run install-skills.sh; check .agents/skills/ exists |
Commit refused on main |
Intended: work on a branch |
new-artifact.sh refuses |
Add the type's row to docs/artifact-registry.md first |
SQA and QC Framework
- Home
- Description
- Artifacts
- Install
- Badges
- GUI Testing
- Candidate Stories
- Security and operations
- Prompt Log
- AI Prompt Template
- Example: Football Club
- Example: Prime Numbers
- Appendix
Related
Languages