Skip to content

Commit abf9bac

Browse files
ansh-varshneyAnsh Varshney
andauthored
ci(github-actions): integrate Cisco AI Defense Skill Scanner (#3354)
Creates a new workflow to automatically scan the AI skills directory for prompt injections and data exfiltration patterns. Re-organizes skills.md into the Cisco Agent Skills specification format. Fixes: WEB-836 fix(docs): rename skills file to standard SKILL.md specification fix(docs): update SKILL.md based on coderabbit suggestion ci(github-actions): integrate Cisco AI Defense Skill Scanner Creates a new workflow to automatically scan the AI skills directory for prompt injections and data exfiltration patterns. Re-organizes skills.md into the Cisco Agent Skills specification format. Updates SKILL.md rules. Fixes: WEB-836 Co-authored-by: Ansh Varshney <your-email@example.com>
1 parent 0180ff1 commit abf9bac

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/scan-skills.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Scan AI Agent Skills
2+
3+
on:
4+
push:
5+
paths:
6+
- 'skills/**'
7+
pull_request:
8+
paths:
9+
- 'skills/**'
10+
11+
jobs:
12+
scan:
13+
uses: cisco-ai-defense/skill-scanner/.github/workflows/scan-skills.yml@main
14+
with:
15+
# We tell the scanner to look at the skills directory
16+
skill_path: skills
17+
permissions:
18+
security-events: write
19+
contents: read

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This is a large-scale financial application. It contains many domain modules (e.
1212
- **`src/assets/`**: Contains static assets, i18n translation files (`.json`), and customizable environment templates.
1313
- **`src/environments/`**: Contains build-time environment flags.
1414
- **`src/theme/`**: Contains global SCSS and Angular Material custom thematic overrides.
15+
- **`skills/SKILL.md`**: Contains MUST-FOLLOW procedural constraints for AI UI generation (Material UI, i18n variables, file headers). ALWAYS read this before generating components.
1516
- **Domain Context**: Mifos/Fineract handles financial objects. "Clients" have "Savings" and "Loans". "Offices" are branches. "Centers" and "Groups" are for microfinance group-lending methodologies.
1617
- **Data Flow**: The UI interacts with Apache Fineract almost exclusively via REST. Expect payload structures to be strictly defined by the Fineract API specification.
1718
- **State Management**: The app relies heavily on RxJS Observables and route resolvers to fetch and pass data rather than a unified predictable state container like NgRx.

skills.md renamed to skills/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This file defines the procedural knowledge required for AI agents to successfull
1515

1616
- Prefer Angular Material components/directives for interactive UI.
1717
- Use Material components where they exist (`<mat-table>`, `<mat-select>`) and Material directives on native controls where required (`<button mat-button>`, `<input matInput>`).
18-
- Use the 8px grid system for margins and padding (e.g., `margin-bottom: 16px;`, NOT `10px` or `15px`).
18+
- Use the 8px grid system for margins and padding using either utility classes (e.g., `class="m-b-16"`) or inline CSS (e.g., `margin-bottom: 16px;`). Arbitrary values like `10px` or `15px` are strictly prohibited.
1919

2020
**Correct Example:**
2121

0 commit comments

Comments
 (0)