CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

perihelion-security/audit

Perihelion's security team playbooks for audits: respond to a finding reported by the external audit system with a reviewable fix.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

SKILL.mdskills/respond-to-audit-finding/

name:
respond-to-audit-finding
description:
Reads an audit finding that Perihelion's external audit system reported to Tessl and applies code changes to the repository that remediate it. Use this skill when a loop run was started by a finding being reported and the agent must turn the finding into a targeted, reviewable fix.

Respond to Audit Finding

Apply targeted code changes that remediate a single audit finding reported to Tessl by Perihelion's external audit system.

Prerequisites

Before making any changes, read the repository's own contribution and agent guidelines:

  1. Check for AGENTS.md, CLAUDE.md, or CONTRIBUTING.md at the repository root and follow any conventions they specify (branching strategy, linting commands, test commands, file naming, etc.).
  2. Check the README for a high-level description of the codebase structure.

Steps

1. Read the Finding

The run was started by the finding being reported. Read .cloud-launch/trigger-events.json: the tessl:finding.created event's payload.finding is the finding.

Only respond to audit findings. If the finding's tags do not include external-audit, stop without opening a pull request and report that the finding is not an audit finding.

Run tessl finding view <finding id> --json for its current state. If it is resolved or ignored, stop without opening a pull request and report that no action is needed.

From the finding, use:

  • ID and the audit item tag (for example AUD-2026-114), for traceability.
  • Title and analysis: what the auditor identified and which control it breaks.
  • Recommendation: the auditor's required remediation. This is the specification of the change.
  • Expected improvement: what must be true once the finding is closed.
  • Observations: the evidence the auditor recorded, and any file locations.

If the finding has no recommendation, stop without opening a pull request and explain what is missing.

2. Assess the Scope

  1. Find the code the finding describes, starting from any locations in its observations.
  2. Confirm the issue is still present. If it is already remediated, stop without opening a pull request and report that no action is needed.
  3. Identify any related files that must change together to fully close the finding (e.g. a config file and its schema, a policy file and its test).

3. Implement the Remediation

  1. Make the minimum code changes necessary to do what the recommendation says. Do not refactor unrelated code.
  2. Add or update inline comments where they explain why the change was made, referencing the audit item (e.g. # Remediation: AUD-2026-114).
  3. If the repository contains configuration, infrastructure-as-code, or policy files relevant to the finding, update those in the same change set.
  4. Do not introduce new secrets, credentials, or hard-coded sensitive values.

4. Verify the Fix

Run the repository's own verification steps in order:

  1. Linter / formatter (check AGENTS.md, Makefile, package.json scripts, pyproject.toml, etc. for the correct command).
  2. Unit / integration tests relevant to the changed components, including any test the recommendation asks for.
  3. Any security or compliance scan commands documented in the repository.

If verification fails, attempt to fix the failure. If you cannot resolve it within the scope of the finding, stop without opening a pull request and document the blocker clearly.

5. Open a Pull Request

Create a new branch from the default branch (or the branch specified in AGENTS.md), commit, push, and open a pull request against it. Do not push directly to the default branch, and do not merge.

Title the pull request:

fix: remediate audit finding <audit item> - <short description>

At the top of the description, include:

  • Audit item and finding ID
  • Control the finding breaks, from its analysis
  • Summary of changes made
  • Verification steps run and their outcome
  • A statement that no unrelated changes are included.

6. Link the Pull Request to the Finding

Attach the pull request to the finding with tessl finding link add <finding id> --type pull_request --url <PR URL>, and to this run with tessl launch attach-link --link-rel produced --link-type github_pr --link-value <PR URL>. If either fails, report the failure with the PR URL. Do not open another pull request to recover.

Keep the run's result summary to one or two plain sentences naming the pull request and the audit item it remediates.

skills

respond-to-audit-finding

tile.json