🛡️
AI EngineeringTypeScript

AgentShield

by affaan-m

AgentShield is an AI Engineering skill for Claude Code, published by affaan-m in agentshield.

1.1K stars227 forkson affaan-m/agentshieldAdded 2026/08/21Repository updated 2026/07/22
ai-agentanthropicclaude-codehackathonmcpopussecurity
Install in seconds
Install AgentShield
Copy AgentShield into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/affaan-m/agentshield/tree/main/.agents/skills/agentshield ~/.claude/skills/agentshield

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/affaan-m/agentshield.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.agents/skills/agentshield/SKILL.md in affaan-m/agentshield
Installs to
~/.claude/skills/agentshield
Collection
The only skill cataloged from this repository
Category
AI Engineering2451 skills

What AgentShield does

AgentShield documents the coding, commit, and testing conventions used in the agentshield TypeScript codebase. Use it when contributing features or running tests in that project.

AgentShield is cataloged under AI Engineering on DirSkills. AgentShield comes from a repository tagged ai-agent, anthropic, claude-code, hackathon and mcp.

Documentation

README

# agentshield Development Patterns

> Auto-generated skill from repository analysis

## Overview
This skill teaches the core development patterns and conventions used in the `agentshield` TypeScript codebase. It covers file naming, import/export styles, commit message conventions, and testing patterns. This guide is designed to help contributors quickly align with the project's established practices and workflows.

## Coding Conventions

### File Naming
- Use **camelCase** for file names.
  - Example: `userAgent.ts`, `apiHandler.ts`

### Import Style
- Use **relative imports** for referencing local modules.
  - Example:
    ```typescript
    import { fetchData } from './apiHandler';
    ```

### Export Style
- Use **named exports** for all modules.
  - Example:
    ```typescript
    // In apiHandler.ts
    export function fetchData() { ... }
    ```

### Commit Messages
- Follow the **Conventional Commits** specification.
- Use the `feat` prefix for new features.
  - Example:  
    ```
    feat: add user agent parsing to middleware
    ```
- Average commit message length: ~59 characters.

## Workflows

### Feature Development
**Trigger:** When adding a new feature to the codebase  
**Command:** `/feature-development`

1. Create a new branch for your feature.
2. Implement the feature using camelCase file naming and relative imports.
3. Use named exports for any new modules.
4. Write or update corresponding tests (`*.test.*` files).
5. Commit your changes using the `feat` prefix and a descriptive message.
6. Open a pull request for review.

### Testing
**Trigger:** When verifying code changes or before merging  
**Command:** `/run-tests`

1. Identify or create test files matching the `*.test.*` pattern.
2. Run the test suite using the project's test runner (framework unknown; check project scripts).
3. Ensure all tests pass before merging or submitting a pull request.

## Testing Patterns

- Test files follow the `*.test.*` naming convention (e.g., `apiHandler.test.ts`).
- The testing framework is not specified; check for scripts or documentation in the repository.
- Place tests alongside the code they test or in a dedicated test directory.

**Example Test File:**
```typescript
// apiHandler.test.ts
import { fetchData } from './apiHandler';

This is the opening of the README. Read the full README on GitHub.

Commands AgentShield provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /feature-development
  • /run-tests

Frequently asked about AgentShield

  • How does AgentShield compare to other AI Engineering skills?

    AgentShield ranks #1301 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of AgentShield against them. Open each page to compare what they document and how they install.