create-agentic-app 1.1.56 → 1.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/.agents/skills/security-scanner/SKILL.md +157 -0
- package/template/.agents/skills/security-scanner/references/A01-broken-access-control.md +136 -0
- package/template/.agents/skills/security-scanner/references/A02-security-misconfiguration.md +130 -0
- package/template/.agents/skills/security-scanner/references/A03-software-supply-chain-failures.md +117 -0
- package/template/.agents/skills/security-scanner/references/A04-cryptographic-failures.md +141 -0
- package/template/.agents/skills/security-scanner/references/A05-injection.md +155 -0
- package/template/.agents/skills/security-scanner/references/A06-insecure-design.md +145 -0
- package/template/.agents/skills/security-scanner/references/A07-authentication-failures.md +150 -0
- package/template/.agents/skills/security-scanner/references/A08-software-data-integrity-failures.md +132 -0
- package/template/.agents/skills/security-scanner/references/A09-security-logging-alerting-failures.md +130 -0
- package/template/.agents/skills/security-scanner/references/A10-mishandling-exceptional-conditions.md +154 -0
- package/template/.agents/skills/security-scanner/references/report-template.md +148 -0
- package/template/.claude/agents/security-scanner.md +214 -0
- package/template/.claude/skills/security-scanner/SKILL.md +157 -0
- package/template/.claude/skills/security-scanner/references/A01-broken-access-control.md +136 -0
- package/template/.claude/skills/security-scanner/references/A02-security-misconfiguration.md +130 -0
- package/template/.claude/skills/security-scanner/references/A03-software-supply-chain-failures.md +117 -0
- package/template/.claude/skills/security-scanner/references/A04-cryptographic-failures.md +141 -0
- package/template/.claude/skills/security-scanner/references/A05-injection.md +155 -0
- package/template/.claude/skills/security-scanner/references/A06-insecure-design.md +145 -0
- package/template/.claude/skills/security-scanner/references/A07-authentication-failures.md +150 -0
- package/template/.claude/skills/security-scanner/references/A08-software-data-integrity-failures.md +132 -0
- package/template/.claude/skills/security-scanner/references/A09-security-logging-alerting-failures.md +130 -0
- package/template/.claude/skills/security-scanner/references/A10-mishandling-exceptional-conditions.md +154 -0
- package/template/.claude/skills/security-scanner/references/report-template.md +148 -0
- package/template/AGENTS.md +21 -77
- package/template/DESIGN.md +451 -0
- package/template/next-env.d.ts +1 -1
- package/template/specs/ui-polish-responsive/README.md +59 -0
- package/template/specs/ui-polish-responsive/action-required.md +3 -0
- package/template/specs/ui-polish-responsive/requirements.md +53 -0
- package/template/specs/ui-polish-responsive/tasks/task-01-globals-css.md +144 -0
- package/template/specs/ui-polish-responsive/tasks/task-02-layout.md +66 -0
- package/template/specs/ui-polish-responsive/tasks/task-03-site-header.md +79 -0
- package/template/specs/ui-polish-responsive/tasks/task-04-site-footer.md +63 -0
- package/template/specs/ui-polish-responsive/tasks/task-05-home-page.md +215 -0
- package/template/specs/ui-polish-responsive/tasks/task-06-dashboard.md +222 -0
- package/template/specs/ui-polish-responsive/tasks/task-07-chat-page.md +225 -0
- package/template/specs/ui-polish-responsive/tasks/task-08-profile-page.md +192 -0
- package/template/specs/ui-polish-responsive/tasks/task-09-auth-pages.md +97 -0
- package/template/specs/ui-polish-responsive/tasks/task-10-setup-checklist.md +120 -0
- package/template/specs/ui-polish-responsive/tasks/task-11-starter-prompt-modal.md +87 -0
- package/template/src/app/globals.css +65 -7
- package/template/src/app/layout.tsx +2 -2
- package/template/src/app/page.tsx +174 -174
- package/template/src/components/setup-checklist.tsx +162 -162
- package/template/src/components/site-footer.tsx +2 -2
- package/template/src/components/site-header.tsx +3 -3
- package/template/src/components/starter-prompt-modal.tsx +202 -202
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Security Audit Report
|
|
2
|
+
|
|
3
|
+
**Project:** [PROJECT_NAME]
|
|
4
|
+
**Date:** [YYYY-MM-DD]
|
|
5
|
+
**Auditor:** Claude Code Security Scanner
|
|
6
|
+
**Framework:** OWASP Top 10:2025
|
|
7
|
+
**Scope:** [LIST_OF_DIRECTORIES_AND_FILES_ANALYZED]
|
|
8
|
+
**Technology Stack:** [LANGUAGES_FRAMEWORKS_DETECTED]
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Executive Summary
|
|
13
|
+
|
|
14
|
+
[2-3 paragraph overview: what was analyzed, key risk areas found, overall risk posture, most urgent items to address]
|
|
15
|
+
|
|
16
|
+
**Overall Risk Score:** [SCORE] ([Low/Moderate/High/Critical] Risk)
|
|
17
|
+
|
|
18
|
+
| Severity | Count |
|
|
19
|
+
|----------|-------|
|
|
20
|
+
| Critical | [X] |
|
|
21
|
+
| High | [X] |
|
|
22
|
+
| Medium | [X] |
|
|
23
|
+
| Low | [X] |
|
|
24
|
+
| Info | [X] |
|
|
25
|
+
| **Total**| **[X]** |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Findings
|
|
30
|
+
|
|
31
|
+
### A01:2025 — Broken Access Control
|
|
32
|
+
|
|
33
|
+
[If findings exist, list each one using the format below. If no findings, write: "No issues identified. Checked: [list what was checked]."]
|
|
34
|
+
|
|
35
|
+
#### [SEVERITY] [Finding Title]
|
|
36
|
+
- **File:** `[path/to/file.ext]`
|
|
37
|
+
- **Line(s):** [XX-YY]
|
|
38
|
+
- **CWE:** [CWE-XXX: Name]
|
|
39
|
+
- **Description:** [What the vulnerability is and why it matters]
|
|
40
|
+
- **Evidence:**
|
|
41
|
+
```[language]
|
|
42
|
+
// vulnerable code snippet from the actual codebase
|
|
43
|
+
```
|
|
44
|
+
- **Recommendation:**
|
|
45
|
+
```[language]
|
|
46
|
+
// fixed code snippet showing the remediation
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### A02:2025 — Security Misconfiguration
|
|
52
|
+
|
|
53
|
+
[Same format as above]
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### A03:2025 — Software Supply Chain Failures
|
|
58
|
+
|
|
59
|
+
[Same format as above]
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### A04:2025 — Cryptographic Failures
|
|
64
|
+
|
|
65
|
+
[Same format as above]
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### A05:2025 — Injection
|
|
70
|
+
|
|
71
|
+
[Same format as above]
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### A06:2025 — Insecure Design
|
|
76
|
+
|
|
77
|
+
[Same format as above]
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### A07:2025 — Authentication Failures
|
|
82
|
+
|
|
83
|
+
[Same format as above]
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### A08:2025 — Software or Data Integrity Failures
|
|
88
|
+
|
|
89
|
+
[Same format as above]
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### A09:2025 — Security Logging and Alerting Failures
|
|
94
|
+
|
|
95
|
+
[Same format as above]
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### A10:2025 — Mishandling of Exceptional Conditions
|
|
100
|
+
|
|
101
|
+
[Same format as above]
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Risk Score Breakdown
|
|
106
|
+
|
|
107
|
+
Scoring: Critical = 10 pts, High = 7 pts, Medium = 4 pts, Low = 2 pts, Info = 0 pts.
|
|
108
|
+
|
|
109
|
+
| Category | Critical | High | Medium | Low | Info | Points |
|
|
110
|
+
|----------|----------|------|--------|-----|------|--------|
|
|
111
|
+
| A01 — Broken Access Control | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
112
|
+
| A02 — Security Misconfiguration | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
113
|
+
| A03 — Supply Chain Failures | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
114
|
+
| A04 — Cryptographic Failures | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
115
|
+
| A05 — Injection | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
116
|
+
| A06 — Insecure Design | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
117
|
+
| A07 — Authentication Failures | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
118
|
+
| A08 — Data Integrity Failures | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
119
|
+
| A09 — Logging & Alerting Failures | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
120
|
+
| A10 — Exceptional Conditions | [X] | [X] | [X] | [X] | [X] | [XX] |
|
|
121
|
+
| **Total** | | | | | | **[XX]** |
|
|
122
|
+
|
|
123
|
+
**Risk Rating:** 0-10 = Low | 11-30 = Moderate | 31-60 = High | 61+ = Critical
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Remediation Priority
|
|
128
|
+
|
|
129
|
+
[Ordered list of the most critical items to fix first, with brief rationale]
|
|
130
|
+
|
|
131
|
+
1. **[Most critical finding]** — [why this is urgent and what to do]
|
|
132
|
+
2. **[Second most critical]** — [why and what]
|
|
133
|
+
3. **[Third most critical]** — [why and what]
|
|
134
|
+
[Continue as needed...]
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Methodology
|
|
139
|
+
|
|
140
|
+
This audit was performed using static analysis against the OWASP Top 10:2025 framework. Each category was evaluated using pattern-matching (grep), code review (file reading), dependency analysis, and configuration inspection. The analysis covered source code, configuration files, dependency manifests, and environment settings.
|
|
141
|
+
|
|
142
|
+
**Limitations:** This is a static analysis — it does not include dynamic/runtime testing, penetration testing, or network-level analysis. Some vulnerabilities may only be discoverable through dynamic testing.
|
|
143
|
+
|
|
144
|
+
## References
|
|
145
|
+
|
|
146
|
+
- [OWASP Top 10:2025](https://owasp.org/Top10/2025/)
|
|
147
|
+
- [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)
|
|
148
|
+
- [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/)
|
package/template/AGENTS.md
CHANGED
|
@@ -1,87 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
# CRITICAL RULES - MUST FOLLOW
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## RESPONSES
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Keep responses concise and to the point - unless the user asks otherwise
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## PLANNING MODE
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- Always ask clarifying questions
|
|
10
|
+
- Never assume design, tech stack or features
|
|
11
|
+
- Use deep-dive sub-agents to assist with research
|
|
12
|
+
- Use deep-dive sub-agents to review the different aspects of your plan before presenting to the user
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
## CHANGE / EDIT MODE
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
16
|
+
- Never implement features yourself when possible - use sub-agents!
|
|
17
|
+
- Identify changes from the plan that can be implemented in parallel, and use sub-agents to implement the features efficiently
|
|
18
|
+
- When using sub-agents to implement features, act as a coordinator only
|
|
19
|
+
- Use the best model for the task - premium models for complex tasks (like coding) and mid-tier models for simpler tasks, like documentation
|
|
20
|
+
- After completing features (large or small), always run commands like lint and type check to check code quality
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
## TESTING
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
- A code review gate runs between waves
|
|
24
|
-
- Issues from review are dispatched back to coder agents
|
|
25
|
-
- The cycle repeats until everything passes
|
|
24
|
+
- Use any testing tools, libraries available to the project for testing your changes
|
|
25
|
+
- Never assume your changes simply work, always test!
|
|
26
|
+
- If the project does not have any testing tools, scripts, MCP tools, skills, etc. available for testing, ask the user whether testing should be skipped.
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
## UI DESIGN
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- Any feature with 2+ tasks or files to change
|
|
32
|
-
- Any work that came out of a planning conversation
|
|
33
|
-
- Any time the user says "implement", "build", "create this feature", or similar after discussing what to build
|
|
34
|
-
|
|
35
|
-
### When does it NOT apply?
|
|
36
|
-
|
|
37
|
-
- Single-file bug fixes or trivial changes
|
|
38
|
-
- Quick config edits or one-line patches
|
|
39
|
-
- Tasks the user explicitly asks to do inline ("just fix this here")
|
|
40
|
-
|
|
41
|
-
If in doubt, ask the user: "This looks like it could benefit from a spec — should I create one, or would you prefer I implement it directly?"
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
# Project Agent Instructions
|
|
46
|
-
|
|
47
|
-
## Skills
|
|
48
|
-
|
|
49
|
-
This repo ships agent skills under `.claude/skills` (mirrored at `.agents/skills`). **Read and follow the relevant skill** when your task matches its domain—skills encode stack conventions and patterns for this project.
|
|
50
|
-
|
|
51
|
-
Use **`find-skills`** when you are unsure whether a skill exists for a task or want to discover installable skills from registries.
|
|
52
|
-
|
|
53
|
-
## Pre-flight (non-trivial tasks)
|
|
54
|
-
|
|
55
|
-
1. Map the work to skills using the routing table below.
|
|
56
|
-
2. Open and follow matching skills before writing substantial code or making architectural decisions.
|
|
57
|
-
|
|
58
|
-
If you start down the wrong path, stop, invoke the right skill, and continue from there.
|
|
59
|
-
|
|
60
|
-
## Task → skill routing
|
|
61
|
-
|
|
62
|
-
| If you are about to… | Invoke first |
|
|
63
|
-
| --- | --- |
|
|
64
|
-
| Plan a feature, create a spec, break work into tasks | `create-spec` |
|
|
65
|
-
| Implement a planned feature, execute a spec | `implement-feature` |
|
|
66
|
-
| Create a checkpoint commit | `checkpoint` |
|
|
67
|
-
| Review a pull request | `review-pr` |
|
|
68
|
-
| Touch Next.js App Router, routing, RSC, data fetching, deployment | `nextjs` |
|
|
69
|
-
| Touch shadcn/ui components or registries | `shadcn` |
|
|
70
|
-
| Touch Better Auth configuration or auth flows | `better-auth-best-practices` |
|
|
71
|
-
| Optimize or review React / Next.js performance | `vercel-react-best-practices` |
|
|
72
|
-
| Build, modify, or review an MCP server | `mcp-builder` |
|
|
73
|
-
| Build or review a frontend design / UI | `frontend-design`, `web-design-guidelines` |
|
|
74
|
-
| Automate browser testing (Playwright) | `playwright-cli` |
|
|
75
|
-
| Create or refine project agent skills | `skill-creator` |
|
|
76
|
-
| Look for a skill or extend capabilities | `find-skills` |
|
|
77
|
-
|
|
78
|
-
Stack skills compose: invoking `nextjs` does not excuse skipping `shadcn` or `better-auth-best-practices` when those layers are involved.
|
|
79
|
-
|
|
80
|
-
## Hard rules
|
|
81
|
-
|
|
82
|
-
1. **Never touch the Next.js / shadcn / Better Auth / MCP layers without reading their corresponding skill** for this repo. They are mandatory references, not optional browsing.
|
|
83
|
-
2. **Before claiming work is done, fixed, or passing**, run the project’s verification commands (see workspace rules: lint and typecheck scripts) and only assert success when the output supports it.
|
|
84
|
-
|
|
85
|
-
## If no skill matches
|
|
86
|
-
|
|
87
|
-
Fall back to sound engineering judgment. State explicitly: _"I checked the skills list and none applied because …"_ so the user can correct a missed skill.
|
|
30
|
+
- Always following the UI design system when creating or reviewing components or pages.
|
|
31
|
+
- Design System: @DESIGN.md
|