inceptyon-labs/tenet-skills/tenet-build-ci

Claude Code and agent skill by inceptyon-labs/tenet-skills

Trust tier 3
  • community
Source check pending

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-ci

SKILL.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

yaml
support:
native: [github-actions, gitlab-ci, docker]
heuristic: [jenkins, circleci, travis, bitbucket-pipelines, azure-devops]
note: >
Native support parses GitHub Actions workflows, GitLab CI YAML, and Dockerfiles with full structure awareness.
Heuristic support uses pattern matching for Jenkins, CircleCI, and other CI systems.

Toolchain Inputs

This skill consumes the following toolchain outputs when available:

Toolchain FileToolWhat It Provides
.healthcheck/toolchain/hadolint.jsonhadolintDockerfile lint findings (base image pinning, USER directive, COPY vs ADD, etc.)
.healthcheck/toolchain/actionlint.jsonactionlintGitHub 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

IDCheckSeverityConfidence
BCI-01CI config presencecriticalnative / heuristic
BCI-02Build reproducibility (lockfiles, pinned versions)major-criticalnative / heuristic
BCI-03Lint + typecheck + test in CI pipelinemajornative / heuristic
BCI-04Secrets handling via CI secret storecriticalnative / heuristic
BCI-05Branch protection evidenceminor-majorheuristic
BCI-06Docker image securitymajor-criticaldeterministic / 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.json scripts 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 ManagerManifestExpected Lockfile
npmpackage.jsonpackage-lock.json
yarn (v1)package.jsonyarn.lock
yarn (berry)package.jsonyarn.lock + .yarnrc.yml
pnpmpackage.jsonpnpm-lock.yaml
bunpackage.jsonbun.lockb
piprequirements.txtrequirements.txt (with pinned versions) or pip.lock
pippyproject.tomlpoetry.lock or pdm.lock or uv.lock
poetrypyproject.tomlpoetry.lock
Gogo.modgo.sum
CargoCargo.tomlCargo.lock
BundlerGemfileGemfile.lock
Composercomposer.jsoncomposer.lock
Mavenpom.xml(no lockfile convention — skip)
Gradlebuild.gradlegradle.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@v4 with explicit node-version parameter
  • actions/setup-python@v5 with explicit python-version parameter
  • actions/setup-go@v5 with explicit go-version parameter
  • Use of .node-version, .nvmrc, .python-version, .tool-versions, .go-version files

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 (not npm install)
  • yarn: yarn --frozen-lockfile or yarn 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 GatePatterns
Linteslint, flake8, pylint, ruff, golangci-lint, rubocop, clippy, npm run lint, yarn lint, pnpm lint, make lint
Typechecktsc --noEmit, tsc -b, mypy, pyright, pytype, npm run typecheck, yarn typecheck, make typecheck
Testjest, 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:

  1. 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"
  1. Proper secret references:

Verify that sensitive values use the CI platform's secret store:

  • GitHub Actions: ${{ secrets.* }}
  • GitLab CI: $CI_* variables or variables: section with masked: true
  • Jenkins: credentials(), withCredentials
  • CircleCI: $CIRCLE_* or context references
  1. Env files committed:

Check if .env, .env.local, .env.production files are committed (exist in git and not in .gitignore):

  • If .env with actual values (not just variable names) is committed: critical — ".env file with secrets committed to repository"
  • If .env.example or .env.template exists (with placeholder values): no finding (this is correct practice)
  1. Missing .gitignore entries:

Check .gitignore for common secret file patterns (.env, *.pem, *.key, credentials.json):

  • If .gitignore is 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:

  1. CODEOWNERS file: If .github/CODEOWNERS or CODEOWNERS exists, it implies review requirements are enforced: no finding.
  2. Required status checks: If CI workflows use on: pull_request (not just on: push), this suggests PR-based workflow: no finding.
  3. Merge queue config: If .github/merge-queue.yml or branch protection references exist: no finding.
  4. 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 RuleTenet 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:

  1. 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"
  1. 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"
  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/inceptyon-labs/tenet-skills/tenet-build-ci/badge)](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-build-ci)

Something wrong with this skill or its page? Tell us.