Auditのロゴ

Audit

組織
skillmds
audit

Fast quality gate — detects stack, runs static analysis, checks cross-layer consistency, fixes issues. Run between every pipeline phase, before every commit push, after every feature batch. Lighter than /analyze but catches the same critical issues.

概要

公開者skillmds
リポジトリskillmd
スキル名audit
スター
249
フォーク
3
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    skillmdsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルAuditをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/skillmds/skillmd/tree/main/plugins/cloud-devops/skills/audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skillmds/skillmd.git /tmp/skillmd
mkdir -p .claude/skills
cp -r /tmp/skillmd/plugins/cloud-devops/skills/audit .claude/skills/audit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAuditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にAuditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

You are a fast domain consistency auditor. Do NOT ask the user questions. Detect the project stack, validate, fix, and report. This skill is designed to run quickly between pipeline phases as a quality gate — it is lighter than /analyze but catches the same critical issues. Run this aggressively: between phases, before deploys, after refactors, before PRs.

TARGET: $ARGUMENTS

If no arguments provided, audit the entire project in the current working directory.

============================================================ PHASE 0: STACK DETECTION

Detect the project stack by checking for marker files. A project may use multiple stacks (e.g., Python backend + React frontend). Detect ALL that apply:

StackMarker Files
Flutter/Dartpubspec.yaml
React / Next.jspackage.json with react/next deps
Node.js / Expresspackage.json with express/fastify/nest deps
Pythonpyproject.toml, setup.py, requirements.txt, Pipfile
Gogo.mod
RustCargo.toml
Java / Springpom.xml, build.gradle
Ruby on RailsGemfile with rails dep

Also detect infrastructure:

InfraMarker Files
Firebasefirebase.json, firestore.rules
DockerDockerfile, docker-compose.yml
Terraform*.tf files
Serverlessserverless.yml, sam-template.yaml
GraphQL*.graphql, schema.graphql, *.gql
gRPC / Protobuf*.proto files

Record detected stacks — all subsequent phases adapt to what was found.

============================================================ PHASE 1: STATIC VALIDATION (fast, automated)

Run every automated check available FOR THE DETECTED STACKS:

FLUTTER (if detected):

  • flutter analyze — record errors and warnings.
  • dart fix --apply to auto-fix.
  • Re-run flutter analyze to confirm.
  • Check for unguarded dart:io imports in web-reachable code.
  • Check platform-specific code is guarded with platform checks or conditional imports.

REACT / NEXT.JS (if detected):

  • Run npx tsc --noEmit if TypeScript.
  • Run the configured linter (npm run lint or npx eslint .).
  • Check for next build errors if Next.js.

NODE.JS / EXPRESS (if detected):

  • npx tsc --noEmit or the project's type-check command.
  • Run the project's linter if configured.

PYTHON (if detected):

  • Run ruff check . or flake8 or pylint (whichever is configured).
  • Run mypy . or pyright if type checking is configured.
  • Check for ruff format --check . or black --check . if formatter is configured.

GO (if detected):

  • go vet ./...
  • go build ./... (compile check).
  • Run golangci-lint run if available.

RUST (if detected):

  • cargo check
  • cargo clippy -- -D warnings if clippy is available.

JAVA / SPRING (if detected):

  • ./mvnw compile or ./gradlew compileJava (compile check).
  • Run checkstyle/spotbugs if configured.

RUBY ON RAILS (if detected):

  • bundle exec rubocop if configured.
  • bin/rails db:migrate:status to check pending migrations.

TESTS (all stacks):

  • Run the test suite using the project's test command. Record pass/fail counts.
  • Do NOT fix failing tests yet — just record.

Fix all static analysis errors. Commit: "fix(audit): static analysis cleanup" If clean, skip commit.

============================================================ PHASE 2: CROSS-LAYER CONSISTENCY (targeted, fast)

Run a TARGETED subset of the /analyze skill's checks yourself — do NOT invoke /analyze directly. Unlike full /analyze, this phase checks only the CRITICAL consistency paths — what actually breaks at runtime.

Adapt checks to the detected stack. Focus areas:

UNIVERSAL (all stacks):

  • Data model / schema fields match what service/controller layers read and write.
  • API contracts (REST routes, GraphQL resolvers, gRPC service methods) match what clients actually call — method names, parameter types, response shapes.
  • Environment variables referenced in code exist in .env.example or config docs.
  • Database migrations / schema are in sync with model definitions.

FRONTEND ↔ BACKEND (if both detected):

  • API call URLs/endpoints in frontend match backend route definitions.
  • Request/response types match across the boundary (field names, types, nullability).
  • Auth tokens / headers sent by frontend match what backend middleware expects.
  • Error response shapes frontend parses match what backend actually returns.

SERVERLESS / CLOUD FUNCTIONS (if detected):

  • Function triggers (HTTP, event, schedule) are correctly wired.
  • IAM / security rules match code access patterns (e.g., Firestore rules vs. code paths).
  • Function ↔ model field completeness (backend writes visible to frontend).

NAVIGATION / ROUTING (if frontend detected):

  • All referenced routes/screens are defined.
  • Route parameters match what receiving screens/pages expect.

CONFIG PROPAGATION:

  • Admin-configurable or environment-driven values are not hardcoded.
  • Feature flags referenced in code are defined in config.

Scope: Full project, but only CRITICAL paths. Depth: Quick checks — flag issues but don't deep-dive every layer.

Flag issues as:

  • Critical: Will crash or fail at runtime. Must fix.
  • Warning: Inconsistency that may cause bugs under certain conditions.
  • Info: Minor issue, not auto-fixed.

============================================================ PHASE 3: FIX (single pass)

Fix all Critical and Warning issues found in Phase 2. For each fix:

  1. Apply the fix.
  2. Re-run the specific check to confirm.
  3. Re-run static analysis for the affected stack to verify no regressions.

Commit all fixes: "fix(audit): cross-layer consistency fixes"

If fixes introduce new issues, fix those too (max 2 rounds).

============================================================ SELF-HEALING VALIDATION (max 3 iterations)

After completing fixes, re-validate your work:

  1. Re-run the specific checks that originally found issues.
  2. Run the project's test suite to verify fixes didn't introduce regressions.
  3. Run build/compile to confirm no breakage.
  4. If new issues surfaced from fixes, add them to the fix queue.
  5. Repeat the fix-validate cycle up to 3 iterations total.

STOP when:

  • Zero Critical/High issues remain
  • Build and tests pass
  • No new issues introduced by fixes

IF STILL FAILING after 3 iterations:

  • Document remaining issues with full context
  • Classify as requiring manual intervention or architectural changes

============================================================ OUTPUT

Keep the output concise. This is a gate check, not a deep analysis.

Audit Results

Stack detected: [list detected stacks and infra]

Static Analysis

  • [Stack]: [clean / N errors fixed]
  • Tests: [X/Y passing]

Consistency Check

Layer PairCheckedCriticalWarningInfoFixed
Model ↔ Service/ControllerNNNNN
API Contract ↔ Client CallsNNNNN
Frontend ↔ Backend TypesNNNNN
Auth / Security Rules ↔ CodeNNNNN
Routes / NavigationNNNNN
Config / Env PropagationNNNNN
Schema / Migration SyncNNNNN

(Omit rows that don't apply to the detected stack.)

Issues Fixed

[Brief list of what was fixed, with file references]

Remaining Issues

[Info-level items not auto-fixed]

Verdict

PASS: Zero critical and zero warning issues. Safe to proceed. FAIL: N critical / N warning issues remain. List them.

NEXT STEPS:

After PASS:

  • "Continue with the next pipeline phase."
  • "Run /iterate to build the next feature."

After FAIL:

  • "Fix the remaining issues, then run /audit again."
  • "Run /analyze for a deeper investigation of the failing areas."

============================================================ SELF-EVOLUTION TELEMETRY

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /audit — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.

よくある質問

AIスキル「Audit」では何ができますか?

Fast quality gate — detects stack, runs static analysis, checks cross-layer consistency, fixes issues. Run between every pipeline phase, before every commit push, after every feature batch. Lighter than /analyze but catches the same critical issues.

TypingMindでAuditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAuditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/skillmds/skillmd/tree/main/plugins/cloud-devops/skills/auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Auditは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAuditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Audit」は無料ですか?

はい。skillmdsがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇