inceptyon-labs/tenet-skills/tenet-build-ci
Claude Code and agent skill by inceptyon-labs/tenet-skills
- community
Checking that the SKILL.md file is still in the repository.
Audits CI, reproducible builds, lockfiles, pinned tools, secret handling, and image security.
Install
npx vskill@latest install inceptyon-labs/tenet-skills/tenet-build-ciSKILL.md
The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-build-ci.
Tenet Build & CI
"A build you cannot reproduce is a build you cannot trust."
Audits the project's build and CI configuration across six pillars: CI config presence, build reproducibility, pipeline quality gates, secrets handling, branch protection evidence, and Docker image security. Produces findings and a score written to .healthcheck/reports/build-ci.json.
Purpose
Weak CI pipelines ship bugs, leak secrets, and produce unreproducible builds. A missing lockfile means dependency resolution varies between machines. Docker images running as root escalate container escapes to host compromises. CI without lint/typecheck/test steps means the green checkmark is meaningless. This skill catches these gaps before they reach production.
Calibration — read first
Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).
A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.
Language Support Matrix
Toolchain Inputs
This skill consumes the following toolchain outputs when available:
| Toolchain File | Tool | What It Provides | |
|---|---|---|---|
.healthcheck/toolchain/hadolint.json | hadolint | Dockerfile lint findings (base image pinning, USER directive, COPY vs ADD, etc.) | |
.healthcheck/toolchain/actionlint.json | actionlint | GitHub Actions workflow lint findings (expression errors, unknown actions, deprecated syntax) |
If these files are absent (tool was not installed or not applicable), the skill falls back to its own heuristic analysis. Toolchain findings are imported with confidence: deterministic.
Rubric Summary
| ID | Check | Severity | Confidence | |
|---|---|---|---|---|
| BCI-01 | CI config presence | critical | native / heuristic | |
| BCI-02 | Build reproducibility (lockfiles, pinned versions) | major-critical | native / heuristic | |
| BCI-03 | Lint + typecheck + test in CI pipeline | major | native / heuristic | |
| BCI-04 | Secrets handling via CI secret store | critical | native / heuristic | |
| BCI-05 | Branch protection evidence | minor-major | heuristic | |
| BCI-06 | Docker image security | major-critical | deterministic / native |
See rubric.md for full details on each check.
Procedure
Step 0: Detect CI System and Project Context
Check for CI config files: .github/workflows/*.yml, .gitlab-ci.yml, Jenkinsfile, .circleci/config.yml, .travis.yml, bitbucket-pipelines.yml, azure-pipelines.yml. Also detect Dockerfiles and docker-compose files.
Read .healthcheck/toolchain/language-census.json if available to determine the primary language and package manager.
Step 1: BCI-01 — CI Config Presence
Goal: Verify that the project has a CI/CD pipeline configured.
Detection:
Check for any of the CI config files listed in Step 0. Also check for:
- Makefile with CI-related targets (
test,lint,build,ci) package.jsonscripts containing CI-related commands.github/actions/custom composite actions
If NO CI configuration is found at all:
- critical — "No CI/CD pipeline configuration detected"
If CI config exists but appears to be a skeleton (< 10 lines, no steps/jobs defined):
- major — "CI config exists but appears to be an empty skeleton"
Step 2: BCI-02 — Build Reproducibility
Goal: Verify that builds are reproducible across environments through lockfiles and pinned tool versions.
Detection — Lockfiles:
| Package Manager | Manifest | Expected Lockfile | |
|---|---|---|---|
| npm | package.json | package-lock.json | |
| yarn (v1) | package.json | yarn.lock | |
| yarn (berry) | package.json | yarn.lock + .yarnrc.yml | |
| pnpm | package.json | pnpm-lock.yaml | |
| bun | package.json | bun.lockb | |
| pip | requirements.txt | requirements.txt (with pinned versions) or pip.lock | |
| pip | pyproject.toml | poetry.lock or pdm.lock or uv.lock | |
| poetry | pyproject.toml | poetry.lock | |
| Go | go.mod | go.sum | |
| Cargo | Cargo.toml | Cargo.lock | |
| Bundler | Gemfile | Gemfile.lock | |
| Composer | composer.json | composer.lock | |
| Maven | pom.xml | (no lockfile convention — skip) | |
| Gradle | build.gradle | gradle.lockfile (optional — info only) |
For each manifest found:
- If the corresponding lockfile is missing: critical — "Lockfile missing for {manager}; builds are not reproducible"
- If the lockfile exists but is in
.gitignore: critical — "Lockfile is gitignored; it must be committed for reproducible builds"
Detection — Pinned Tool Versions in CI:
For GitHub Actions workflows, check:
actions/setup-node@v4with explicitnode-versionparameteractions/setup-python@v5with explicitpython-versionparameteractions/setup-go@v5with explicitgo-versionparameter- Use of
.node-version,.nvmrc,.python-version,.tool-versions,.go-versionfiles
If a setup action is used without pinning the language version: major — "CI uses setup-node without pinning node-version; builds may break on runtime version changes"
Detection — CI Install Command:
Check that CI uses the frozen/locked install command:
- npm:
npm ci(notnpm install) - yarn:
yarn --frozen-lockfileoryarn install --immutable - pnpm:
pnpm install --frozen-lockfile - pip:
pip install -r requirements.txt(with pinned versions) - poetry:
poetry install --no-update
If CI uses npm install instead of npm ci: major — "CI uses npm install instead of npm ci; lockfile may be ignored"
Step 3: BCI-03 — Lint + Typecheck + Test in CI Pipeline
Goal: Verify that the CI pipeline runs lint, type checking, and tests as quality gates.
Detection — GitHub Actions (native):
Parse each workflow YAML and look for steps that run:
| Quality Gate | Patterns | |
|---|---|---|
| Lint | eslint, flake8, pylint, ruff, golangci-lint, rubocop, clippy, npm run lint, yarn lint, pnpm lint, make lint | |
| Typecheck | tsc --noEmit, tsc -b, mypy, pyright, pytype, npm run typecheck, yarn typecheck, make typecheck | |
| Test | jest, vitest, pytest, go test, rspec, cargo test, npm test, yarn test, pnpm test, make test |
For each missing quality gate:
- No lint step: major — "CI pipeline has no linting step"
- No typecheck step (and project uses a typed language): major — "CI pipeline has no type checking step"
- No test step: major — "CI pipeline has no test execution step"
If the project is untyped (plain JS without tsconfig.json, Python without mypy/pyright config): skip typecheck finding, emit info — "Consider adding type checking to improve CI quality gates"
Detection — GitLab CI (native):
Parse .gitlab-ci.yml for script: blocks matching the same patterns.
Detection — Heuristic (Jenkins, CircleCI, etc.):
Grep CI config files for the same patterns. Confidence: heuristic.
Step 4: BCI-04 — Secrets Handling
Goal: Verify that secrets are managed through CI secret stores, not committed to the repository.
Detection:
- Hardcoded secrets in CI config:
Scan CI config files for patterns that look like inline secrets:
password:,token:,secret:,api_key:followed by a non-variable value- Base64-encoded strings > 40 chars that are not action references
- If found: critical — "Possible hardcoded secret in CI config"
- Proper secret references:
Verify that sensitive values use the CI platform's secret store:
- GitHub Actions:
${{ secrets.* }} - GitLab CI:
$CI_*variables orvariables:section withmasked: true - Jenkins:
credentials(),withCredentials - CircleCI:
$CIRCLE_*or context references
- Env files committed:
Check if .env, .env.local, .env.production files are committed (exist in git and not in .gitignore):
- If
.envwith actual values (not just variable names) is committed: critical — ".env file with secrets committed to repository" - If
.env.exampleor.env.templateexists (with placeholder values): no finding (this is correct practice)
- Missing .gitignore entries:
Check .gitignore for common secret file patterns (.env, *.pem, *.key, credentials.json):
- If
.gitignoreis missing or does not exclude secret file patterns: major — ".gitignore does not exclude common secret file patterns"
Step 5: BCI-05 — Branch Protection Evidence
Goal: Check for evidence that the main branch has protection rules (cannot verify API-side, but can detect indicators).
Detection:
This check is inherently limited because branch protection is configured server-side. Look for evidence:
- CODEOWNERS file: If
.github/CODEOWNERSorCODEOWNERSexists, it implies review requirements are enforced: no finding. - Required status checks: If CI workflows use
on: pull_request(not juston: push), this suggests PR-based workflow: no finding. - Merge queue config: If
.github/merge-queue.ymlor branch protection references exist: no finding. - No evidence at all: If the repo has no CODEOWNERS, CI only triggers on push (not PR), and no branch protection indicators exist:
- major — "No evidence of branch protection; main branch may accept direct pushes"
If the repo has < 2 contributors (single-developer project), downgrade to info.
Step 6: BCI-06 — Docker Image Security
Goal: Audit Dockerfiles for security best practices.
Skip this step if no Dockerfile is present.
Detection — Deterministic (from hadolint):
If .healthcheck/toolchain/hadolint.json exists, import findings directly. Map hadolint rules to severity:
| Hadolint Rule | Tenet Severity | |
|---|---|---|
| DL3006 (no tag on FROM) | major | |
| DL3007 (using :latest tag) | major | |
| DL3002 (last USER should not be root) | critical | |
| DL3003 (use WORKDIR instead of cd) | minor | |
| DL3008 (pin apt versions) | minor | |
| DL3009 (delete apt lists) | minor | |
| DL3013 (pin pip versions) | minor | |
| DL3018 (pin apk versions) | minor | |
| DL3025 (use JSON for CMD) | minor | |
| DL3042 (avoid cache in pip install) | info | |
| DL4006 (set SHELL for pipefail) | minor |
Detection — Native (no hadolint):
Parse each Dockerfile and check:
- No USER directive (running as root):
If Dockerfile has no USER instruction, or the last USER is root:
- critical — "Docker image runs as root; container escapes escalate to host-level access"
- Unpinned FROM tag:
If FROM uses :latest or has no tag at all (e.g., FROM node):
- major — "FROM image is not pinned; builds may break when upstream updates"
If FROM uses a tag but not a digest (e.g., FROM node:20 vs FROM node:20@sha256:...):
- info — "Consider pinning FROM image by digest for maximum reproducibility"
- Large base image:
If FROM uses a non-slim, non-alpine, non-distroless base (e.g., FROM ubuntu:22.04, FROM node:20):
- minor — "Consider using a minimal base image (alpine, slim, or distroless) to reduce attack surface"
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tenet-build-ci/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-build-ci)