# Team cert verification

> Team cert verification is an open-source agent skill for security. Guides verifying AWID team-certificate requests in a BYOT relying-party service. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/awebai/aweb/tree/main/naapp/folio/skills/team-cert-verification
- **Repository:** https://github.com/awebai/aweb
- **GitHub stars:** 132
- **License:** MIT
- **Skill name:** team-cert-verification
- **Collection:** https://github.com/awebai/aweb
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill walks a developer through building or reviewing a service that authenticates agents by a DIDKey signature plus an AWID team certificate on each team-scoped request. It lays out the four request headers, the canonical signed-payload fields (audience, body hash, method, raw path, team id, timestamp, version 2), and a ten-step verification sequence with the HTTP status each failure should return.

It also covers the pitfalls that commonly break such verifiers: using router-normalized paths instead of the raw target, matching audience canonicalization to aweb, verifying the presented signed bytes rather than a reconstructed dictionary, and resolving the team key from AWID rather than the certificate itself. Caching rules for AWID facts are included, with a 60-second maximum lifetime and fail-closed behavior when AWID is unavailable.

The content points to shared reference code in the aweb repository, including a reusable runtime principal that should be adopted instead of writing a new verifier per app, plus test files and interop vectors. Expect to work against Python and FastAPI-style ASGI code.

## When your agent uses it

> Use when implementing or reviewing AWID team-certificate authentication — verifying the request-bound v2 team-auth envelope, adopting the shared naapp runtime, building a BYOT relying party, wiring aw id request --team-auth, or debugging X-AWEB-Signed-Payload and team certificate failures in a new service.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/awebai/aweb/tree/HEAD/naapp/folio/skills/team-cert-verification)
- [License: MIT](https://github.com/awebai/aweb/tree/HEAD/naapp/folio/skills/team-cert-verification)

## Features

- **Four-header request envelope:** Describes the Authorization, timestamp, certificate and signed-payload headers each team-scoped request must carry.
- **Ten-step verifier sequence:** Lists the ordered checks from timestamp parsing through principal construction, with the failure status for each.
- **Request binding rules:** Explains how method, raw path, query, body hash, team id and audience are bound to the signature.
- **AWID caching and revocation:** Covers in-memory cache lifetimes, certificate status handling and fail-closed behavior during AWID outages.
- **Common anti-patterns:** Tabulates mistakes such as accepting v1 payloads, skipping body hashing or trusting a presented certificate when AWID is down.
- **Shared reference code and tests:** Points to the verifier implementation, test suites and interop vectors in the aweb repository.

## Good for

- Implement team-certificate authentication in a new service
- Review an existing verifier for request binding gaps
- Build a bring-your-own-team relying party
- Debug X-AWEB-Signed-Payload or certificate rejection errors
- Wire aw id requests with team authentication enabled

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/team-cert-verification` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/team-cert-verification &&
cp -R "$tmp/naapp/folio/skills/team-cert-verification" ~/.claude/skills/team-cert-verification &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/team-cert-verification` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/team-cert-verification` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/team-cert-verification &&
cp -R "$tmp/naapp/folio/skills/team-cert-verification" ~/.agents/skills/team-cert-verification &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/team-cert-verification` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/team-cert-verification` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/team-cert-verification &&
cp -R "$tmp/naapp/folio/skills/team-cert-verification" ~/.cursor/skills/team-cert-verification &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/team-cert-verification` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/awebai/aweb.git --path naapp/folio/skills/team-cert-verification
```

Or copy the folder to `~/.gemini/skills/team-cert-verification` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/team-cert-verification`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/team-cert-verification &&
cp -R "$tmp/naapp/folio/skills/team-cert-verification" ~/.copilot/skills/team-cert-verification &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/team-cert-verification` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/awebai/aweb.git
```

Then copy `aweb/naapp/folio/skills/team-cert-verification` into your agent's skills folder as `team-cert-verification`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Team cert verification apply?

It applies when implementing or reviewing AWID team-certificate authentication, verifying the v2 team-auth envelope, building a BYOT relying party, wiring aw id request --team-auth, or debugging signed-payload and certificate failures.

### Should I write my own verifier?

No. The skill recommends reusing the shared NaappRuntime principal from the aweb repository rather than copying a verifier into each app.

### Where does the team key come from?

The team public key must be resolved from AWID. The certificate's own team_did_key field is not trusted for verification.

### How long can AWID facts be cached?

The shared cache keeps successful AWID facts in memory for at most 60 seconds, and failed refreshes never extend the cache lifetime.

### How do I install Team cert verification in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/team-cert-verification to use it in all your projects, or to .claude/skills/team-cert-verification in one project.

### Does Team cert verification run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Team cert verification?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Team cert verification?

The closest alternatives to Team cert verification are Aweb identity, Verify, Auth security, Authentication and API security auth pattern.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Aweb identity](https://ai-powered.com/skills/aweb-identity): Aweb identity is an open-source agent skill for security.
- [Verify](https://ai-powered.com/skills/verify-ruvnet): Verify is an open-source agent skill for security.
- [Auth security](https://ai-powered.com/skills/auth-security): Auth security is an open-source agent skill for security.
- [Authentication](https://ai-powered.com/skills/authentication): Authentication is an open-source agent skill for security.
- [API security auth pattern](https://ai-powered.com/skills/api-security-auth-pattern): API security auth pattern is an open-source agent skill for security.
- [Sh kb auth](https://ai-powered.com/skills/sh-kb-auth): Sh kb auth is an open-source agent skill for security.
- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Authzen](https://ai-powered.com/skills/authzen): Authzen is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/team-cert-verification
