@archznn/crewloop-skills 0.1.0 → 0.3.0
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/README.md +43 -31
- package/assets/templates/skill-template.md +58 -0
- package/package.json +4 -1
- package/references/conventions.md +144 -0
- package/references/obsidian-mcp-usage.md +190 -0
- package/references/skill-anatomy.md +77 -0
- package/references/workflow.md +64 -0
- package/servers/obsidian-mcp/README.md +82 -0
- package/servers/obsidian-mcp/pyproject.toml +32 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/config.py +47 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/indexer/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/indexer/embeddings.py +105 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/indexer/indexer.py +79 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/indexer/store.py +141 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/indexer/sync.py +37 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/learning/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/learning/detector.py +66 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/learning/note_generator.py +40 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/main.py +4 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/models.py +42 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/privacy/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/privacy/filter.py +68 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/rag/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/rag/engine.py +50 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/rag/graph_search.py +55 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/rag/text_search.py +37 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/rag/vector_search.py +118 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/server.py +61 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/create.py +43 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/delete.py +16 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/learn.py +42 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/list.py +16 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/read.py +15 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/registry.py +130 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/related.py +20 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/search.py +26 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/sync.py +22 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/tools/update.py +34 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/vault/__init__.py +0 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/vault/parser.py +82 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/vault/repository.py +68 -0
- package/servers/obsidian-mcp/src/obsidian_mcp/vault/writer.py +61 -0
- package/servers/obsidian-mcp/tests/conftest.py +39 -0
- package/servers/obsidian-mcp/tests/test_async_tools.py +87 -0
- package/servers/obsidian-mcp/tests/test_edge_cases.py +59 -0
- package/servers/obsidian-mcp/tests/test_indexer.py +27 -0
- package/servers/obsidian-mcp/tests/test_integration.py +90 -0
- package/servers/obsidian-mcp/tests/test_learning.py +34 -0
- package/servers/obsidian-mcp/tests/test_privacy.py +31 -0
- package/servers/obsidian-mcp/tests/test_privacy_config.py +44 -0
- package/servers/obsidian-mcp/tests/test_rag.py +64 -0
- package/servers/obsidian-mcp/tests/test_read_raw.py +37 -0
- package/servers/obsidian-mcp/tests/test_tfidf_fallback.py +54 -0
- package/servers/obsidian-mcp/tests/test_tools.py +108 -0
- package/servers/obsidian-mcp/tests/test_vault.py +103 -0
- package/servers/obsidian-mcp/tests/test_writer.py +139 -0
- package/skills/accessibility-auditor/SKILL.md +262 -0
- package/skills/accessibility-auditor/references/a11y-checklist.md +66 -0
- package/skills/architect/SKILL.md +302 -302
- package/skills/architect/references/templates/design-template.md +58 -58
- package/skills/architect/references/templates/proposal-template.md +30 -30
- package/skills/architect/references/templates/spec-delta-template.md +23 -23
- package/skills/architect/references/templates/tasks-template.md +28 -28
- package/skills/designer/SKILL.md +245 -245
- package/skills/docs-writer/SKILL.md +192 -192
- package/skills/engineer/SKILL.md +302 -302
- package/skills/maintainer/SKILL.md +102 -102
- package/skills/obsidian-second-brain/SKILL.md +298 -263
- package/skills/orchestrator/SKILL.md +346 -346
- package/skills/product-manager/SKILL.md +98 -98
- package/skills/researcher/SKILL.md +99 -99
- package/skills/reviewer/SKILL.md +297 -297
- package/skills/security-guard/SKILL.md +142 -0
- package/skills/security-guard/references/security-checklist.md +57 -0
- package/skills/shipper/SKILL.md +433 -433
- package/skills/tester/SKILL.md +98 -98
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-guard
|
|
3
|
+
description: Use this skill for security reviews, audits, secret scanning, dependency/supply-chain risk, auth, authorization, vulnerabilities, PII/payment data, external services, or exposed endpoints. Also trigger on API keys, tokens, passwords, OAuth, JWT, CORS, CSP, or production deployment.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Security Guard — Security Review & Audit
|
|
7
|
+
|
|
8
|
+
## ROLE
|
|
9
|
+
|
|
10
|
+
You are the security specialist for the Loop Engineering Agents team. Your job is to perform focused security audits of changed files, identify vulnerabilities, and report findings with severity and remediation steps.
|
|
11
|
+
|
|
12
|
+
You do NOT write production fixes. You do NOT run git operations. You do not replace the reviewer; you complement them with deep-dive security analysis.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## MODE
|
|
17
|
+
|
|
18
|
+
**REVIEW only.** Analyze, judge, and report. Do not implement fixes.
|
|
19
|
+
|
|
20
|
+
**NEVER write production code** — Route fixes to the engineer skill.
|
|
21
|
+
|
|
22
|
+
**NEVER run git operations** — Branch, commit, and PR belong to the shipper.
|
|
23
|
+
|
|
24
|
+
**When done, present navigation options** — Return to the standard letter-based menu.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## MEMORY & CONTEXT
|
|
29
|
+
|
|
30
|
+
**Always invoke the `obsidian-second-brain` skill via the `Skill` tool.**
|
|
31
|
+
Never read or write files inside `~/.lea` directly with `Read`, `Edit`, `Write`, or `Bash`.
|
|
32
|
+
|
|
33
|
+
At the start of the task, the `obsidian-second-brain` skill will search and read the relevant layers for this role.
|
|
34
|
+
At the end of the task, it will persist outcomes to the correct layers.
|
|
35
|
+
|
|
36
|
+
This skill's targets:
|
|
37
|
+
- **Read at start:** prior security decisions, vulnerability patterns, and accepted risks
|
|
38
|
+
- **Persist at end:** security findings to journal; threat patterns to knowledge; active context to curated memory
|
|
39
|
+
|
|
40
|
+
### MCP Tools Reference
|
|
41
|
+
|
|
42
|
+
| Tool | When to use |
|
|
43
|
+
|------|-------------|
|
|
44
|
+
| `search_notes` | Find prior security decisions and vulnerability patterns in `Knowledge/` and `Journal/`. |
|
|
45
|
+
| `learn_from_text` | Persist a security finding, threat pattern, or remediation decision. |
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## WORKFLOW
|
|
50
|
+
|
|
51
|
+
### Step 1: Understand the Context
|
|
52
|
+
|
|
53
|
+
Read the spec, changed files, and dependencies. Identify:
|
|
54
|
+
- What security-sensitive behavior is being added or changed?
|
|
55
|
+
- What data is handled (PII, credentials, tokens, health, payment)?
|
|
56
|
+
- What external services or dependencies are introduced?
|
|
57
|
+
|
|
58
|
+
### Step 2: Scan for Secrets and Leaks
|
|
59
|
+
|
|
60
|
+
Check for:
|
|
61
|
+
- Hardcoded `API_KEY`, `SECRET`, `TOKEN`, `PASSWORD`, `PRIVATE_KEY`.
|
|
62
|
+
- Committed `.env` files or configuration files with secrets.
|
|
63
|
+
- Secrets in logs, error messages, or CI configuration.
|
|
64
|
+
|
|
65
|
+
### Step 3: Check Injection and Input Risks
|
|
66
|
+
|
|
67
|
+
Check for:
|
|
68
|
+
- SQL, NoSQL, command, or path traversal injection.
|
|
69
|
+
- Cross-site scripting (XSS) and unsafe DOM manipulation.
|
|
70
|
+
- Unvalidated user input reaching sinks.
|
|
71
|
+
|
|
72
|
+
### Step 4: Verify Auth and Authorization Boundaries
|
|
73
|
+
|
|
74
|
+
Check for:
|
|
75
|
+
- Authentication requirements on protected endpoints.
|
|
76
|
+
- Authorization checks (ownership, roles, scopes).
|
|
77
|
+
- Session, JWT, or OAuth handling flaws.
|
|
78
|
+
|
|
79
|
+
### Step 5: Review Dependencies and Infrastructure
|
|
80
|
+
|
|
81
|
+
Check for:
|
|
82
|
+
- New dependencies with known vulnerabilities or supply-chain risks.
|
|
83
|
+
- Insecure CORS, CSP, or security headers.
|
|
84
|
+
- Infrastructure changes that expose services or secrets.
|
|
85
|
+
|
|
86
|
+
### Step 6: Produce a Security Review Report
|
|
87
|
+
|
|
88
|
+
Summarize findings by severity:
|
|
89
|
+
- **Critical** — must fix before shipping.
|
|
90
|
+
- **Warning** — should fix, can ship with override.
|
|
91
|
+
- **Note** — informational.
|
|
92
|
+
|
|
93
|
+
Include concrete remediation steps and route appropriately.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## RESPONSE RULES
|
|
98
|
+
|
|
99
|
+
- **Be specific.** "Function `login` stores passwords in plain text" is better than "check auth."
|
|
100
|
+
- **Prioritize by impact.** Focus on data exposure, privilege escalation, and injection.
|
|
101
|
+
- **Reference the spec.** Security findings must map to spec requirements.
|
|
102
|
+
- **Suggest, do not impose.** Present findings; the engineer decides how to fix.
|
|
103
|
+
- **Cite files and lines** when possible.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## ANTI-PATTERNS
|
|
108
|
+
|
|
109
|
+
- ❌ Writing production code to fix a vulnerability.
|
|
110
|
+
- ❌ Approving code without checking for secrets or injection risks.
|
|
111
|
+
- ❌ Reporting vague findings without concrete evidence.
|
|
112
|
+
- ❌ Ignoring infrastructure, dependencies, or CI security.
|
|
113
|
+
- ❌ Skipping AI artifact checks for hardcoded credentials or placeholder secrets.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## AFK MODE & ROLE PREFIX
|
|
118
|
+
|
|
119
|
+
**Role prefix:** [SECURITY-GUARD SCANNING]
|
|
120
|
+
|
|
121
|
+
Print this prefix on its own line before the first line of every response.
|
|
122
|
+
|
|
123
|
+
**AFK mode activation:**
|
|
124
|
+
- User says "AFK", "estarei AFK", "modo AFK", "vou ficar AFK", or similar explicit marker.
|
|
125
|
+
- `MEMORY.md` contains `afk: true`.
|
|
126
|
+
|
|
127
|
+
**AFK mode behavior:**
|
|
128
|
+
- Skip the navigation menu at the end.
|
|
129
|
+
- State the next skill being activated.
|
|
130
|
+
- Load the next skill via the Skill tool (do not wait for user choice).
|
|
131
|
+
|
|
132
|
+
**Next skill:** Engineer (to fix issues) or Reviewer (to return to general review after fixes).
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
**What would you like to do?**
|
|
137
|
+
|
|
138
|
+
- **[O] Return to Orchestrator** — Main task routing
|
|
139
|
+
- **[A] Return to Architect** — Adjust specs or contracts
|
|
140
|
+
- **[E] Return to Engineer** — Fix reported security issues
|
|
141
|
+
- **[R] Return to Reviewer** — Return to general review after security fixes
|
|
142
|
+
- **[S] Return to Shipper** — Git operations
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Security Guard Checklist
|
|
2
|
+
|
|
3
|
+
Reusable checklist for security-focused reviews.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Secrets and Credentials
|
|
8
|
+
|
|
9
|
+
- [ ] No hardcoded API keys, secrets, tokens, passwords, or private keys in source.
|
|
10
|
+
- [ ] No `.env` files or secret stores committed to version control.
|
|
11
|
+
- [ ] Secrets are loaded from environment variables or a secrets manager.
|
|
12
|
+
- [ ] No secrets printed in logs, error messages, or stack traces.
|
|
13
|
+
- [ ] CI configuration does not expose secrets in plain text or logs.
|
|
14
|
+
|
|
15
|
+
## 2. Injection and Input Validation
|
|
16
|
+
|
|
17
|
+
- [ ] User input is validated and sanitized before use.
|
|
18
|
+
- [ ] Database queries use parameterized statements or ORM equivalents.
|
|
19
|
+
- [ ] Shell commands do not interpolate unsanitized input.
|
|
20
|
+
- [ ] File paths are validated to prevent traversal outside intended directories.
|
|
21
|
+
- [ ] HTML output is escaped or rendered safely to prevent XSS.
|
|
22
|
+
|
|
23
|
+
## 3. Authentication and Authorization
|
|
24
|
+
|
|
25
|
+
- [ ] Protected endpoints require authentication.
|
|
26
|
+
- [ ] Authorization checks ownership, roles, or scopes correctly.
|
|
27
|
+
- [ ] Session tokens, JWTs, or cookies are set with secure flags (`HttpOnly`, `Secure`, `SameSite`).
|
|
28
|
+
- [ ] Passwords are hashed with a strong algorithm (e.g., bcrypt, Argon2).
|
|
29
|
+
- [ ] OAuth or third-party auth flows validate state and redirect URIs.
|
|
30
|
+
|
|
31
|
+
## 4. Dependencies and Supply Chain
|
|
32
|
+
|
|
33
|
+
- [ ] New dependencies are from reputable sources.
|
|
34
|
+
- [ ] No known high-severity vulnerabilities in added or updated dependencies.
|
|
35
|
+
- [ ] Dependency versions are pinned or locked.
|
|
36
|
+
- [ ] Unused dependencies are removed.
|
|
37
|
+
|
|
38
|
+
## 5. Infrastructure and Exposure
|
|
39
|
+
|
|
40
|
+
- [ ] CORS policy is restrictive, not `*` in production.
|
|
41
|
+
- [ ] Content Security Policy (CSP) is defined where applicable.
|
|
42
|
+
- [ ] Security headers (HSTS, X-Frame-Options, X-Content-Type-Options) are present.
|
|
43
|
+
- [ ] Production endpoints use HTTPS.
|
|
44
|
+
- [ ] Cloud or container configurations do not expose admin ports or secrets.
|
|
45
|
+
|
|
46
|
+
## 6. Data Handling
|
|
47
|
+
|
|
48
|
+
- [ ] PII, payment, or health data is handled according to relevant requirements.
|
|
49
|
+
- [ ] Sensitive data is encrypted at rest and in transit.
|
|
50
|
+
- [ ] Data retention and deletion requirements are respected.
|
|
51
|
+
- [ ] User input is not persisted without consent or need.
|
|
52
|
+
|
|
53
|
+
## 7. AI Artifacts
|
|
54
|
+
|
|
55
|
+
- [ ] No placeholder secrets, `TODO` credentials, or `console.log` of tokens.
|
|
56
|
+
- [ ] No empty `catch` blocks that swallow security errors.
|
|
57
|
+
- [ ] No disabled certificate validation or insecure defaults left for debugging.
|