Skip to content

Commit 393b760

Browse files
committed
Enhance CodeGuard plugin structure and documentation
- Updated .gitattributes to improve language detection for markdown files and added documentation settings for the Claude plugin. - Modified .gitignore to include cache files for the Claude plugin and ensure proper exclusion of agent files. - Introduced new marketplace.json and plugin.json files for the Claude Code plugin, detailing plugin metadata and security rules. - Added comprehensive documentation for the CodeGuard Claude Code Plugin, including installation instructions and usage guidelines. - Created multiple security rules covering various aspects such as authentication, API security, data protection, and session management. - Implemented a script to prepare the CodeGuard plugin for distribution, ensuring all necessary files are in place. This commit lays the groundwork for a robust security framework within the Claude Code environment.
1 parent a5f94f3 commit 393b760

29 files changed

Lines changed: 2587 additions & 2 deletions

.claude-plugin/marketplace.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "project-codeguard",
3+
"description": "Official Project CodeGuard plugins for secure AI-assisted coding",
4+
"owner": {
5+
"name": "Project CodeGuard",
6+
"url": "https://project-codeguard.org",
7+
"email": "contact@project-codeguard.org"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/project-codeguard/rules.git"
12+
},
13+
"plugins": [
14+
{
15+
"name": "codeguard-security",
16+
"source": ".",
17+
"description": "Comprehensive security rules for AI coding agents",
18+
"version": "1.0.0",
19+
"tags": ["security", "code-review", "vulnerability-prevention"]
20+
}
21+
]
22+
}
23+

.claude-plugin/plugin.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "codeguard-security",
3+
"description": "Security code review skill based on Project CodeGuard's comprehensive security rules. Helps AI coding agents write secure code and prevent common vulnerabilities.",
4+
"version": "1.0.0",
5+
"author": {
6+
"name": "Project CodeGuard",
7+
"url": "https://project-codeguard.org"
8+
},
9+
"license": "CC-BY-4.0 (rules), Apache-2.0 (tools)",
10+
"homepage": "https://github.com/project-codeguard/rules",
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/project-codeguard/rules.git"
14+
},
15+
"keywords": ["security", "secure-coding", "vulnerability-prevention", "code-review", "appsec"]
16+
}
17+

.gitattributes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@
77
# Explicitly include desired items for releases
88
ide_rules/ -export-ignore
99
ide_rules/** -export-ignore
10-
README.md -export-ignore
10+
README.md -export-ignore
11+
12+
# Linguist language detection
13+
*.md linguist-detectable=true
14+
.claude-plugin/* linguist-documentation=true

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,7 @@ Temporary Items
158158

159159
# Coding Agents
160160
CLAUDE.md
161-
AGENTS.md
161+
AGENTS.md
162+
163+
# Claude Code Plugin
164+
.claude-plugin/.cache

0 commit comments

Comments
 (0)