Skip to content

Commit 8ffe40f

Browse files
author
Nagendhra
committed
feat: add GitHub templates, CI workflow, star/issues badges in README
1 parent 2d8fc79 commit 8ffe40f

6 files changed

Lines changed: 203 additions & 2 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug Report
3+
about: Something not working as expected
4+
title: "[Bug] "
5+
labels: bug
6+
---
7+
8+
## What happened?
9+
10+
A clear description of the bug.
11+
12+
## Expected behavior
13+
14+
What should have happened instead.
15+
16+
## Steps to reproduce
17+
18+
1. Install memory-bank: `npx skills add Nagendhra-web/memory-bank`
19+
2. ...
20+
3. ...
21+
22+
## Your setup
23+
24+
- Claude Code version:
25+
- OS:
26+
- CLAUDE.md memory config (if any):
27+
28+
## MEMORY.md content (if relevant)
29+
30+
```markdown
31+
(paste relevant sections here)
32+
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an improvement or new capability
4+
title: "[Feature] "
5+
labels: enhancement
6+
---
7+
8+
## Problem
9+
10+
What problem does this solve? Why does it matter?
11+
12+
## Proposed solution
13+
14+
How should it work? Include trigger phrases, expected output, or examples.
15+
16+
## Alternatives considered
17+
18+
Any other approaches you thought about.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: New Pattern
3+
about: Share a memory pattern that works well for you
4+
title: "[Pattern] "
5+
labels: pattern, contribution
6+
---
7+
8+
## Pattern name
9+
10+
What do you call this pattern?
11+
12+
## Problem it solves
13+
14+
What situation triggers this pattern?
15+
16+
## How it works
17+
18+
Step by step, what does Claude do?
19+
20+
## Example MEMORY.md section
21+
22+
```markdown
23+
(show what this looks like in practice)
24+
```
25+
26+
## When to use / when not to use
27+
28+
When is this pattern helpful vs overkill?

.github/pull_request_template.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## What this PR does
2+
3+
A clear description of the change.
4+
5+
## Why
6+
7+
What problem does it solve or what does it improve?
8+
9+
## Type of change
10+
11+
- [ ] Bug fix
12+
- [ ] New feature / pattern
13+
- [ ] Improvement to existing feature
14+
- [ ] Documentation update
15+
- [ ] Example MEMORY.md
16+
17+
## Testing
18+
19+
- [ ] Tested with Claude Code
20+
- [ ] Memory loads correctly at session start
21+
- [ ] Trigger phrases work as expected
22+
- [ ] No broken markdown (tables, code blocks)
23+
24+
## Checklist
25+
26+
- [ ] SKILL.md frontmatter is valid YAML
27+
- [ ] No secrets or credentials in any file
28+
- [ ] Follows compact encoding rules (tables > prose)
29+
- [ ] Referenced files exist

.github/workflows/validate.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Validate Skill
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Check SKILL.md exists
16+
run: |
17+
if [ ! -f "skills/memory-bank/SKILL.md" ]; then
18+
echo "ERROR: skills/memory-bank/SKILL.md not found"
19+
exit 1
20+
fi
21+
echo "SKILL.md found"
22+
23+
- name: Validate YAML frontmatter
24+
run: |
25+
head -20 skills/memory-bank/SKILL.md | grep -q "^name:" || { echo "ERROR: missing name field"; exit 1; }
26+
head -20 skills/memory-bank/SKILL.md | grep -q "^description:" || { echo "ERROR: missing description field"; exit 1; }
27+
head -20 skills/memory-bank/SKILL.md | grep -q "^tags:" || { echo "ERROR: missing tags field"; exit 1; }
28+
head -20 skills/memory-bank/SKILL.md | grep -q "^version:" || { echo "ERROR: missing version field"; exit 1; }
29+
echo "All required frontmatter fields present"
30+
31+
- name: Check reference files exist
32+
run: |
33+
refs=(
34+
"skills/memory-bank/references/memory-layers.md"
35+
"skills/memory-bank/references/branch-aware-memory.md"
36+
"skills/memory-bank/references/smart-compression.md"
37+
"skills/memory-bank/references/session-diffing.md"
38+
"skills/memory-bank/references/advanced-patterns.md"
39+
"skills/memory-bank/references/context-efficiency.md"
40+
"skills/memory-bank/references/claude-md-integration.md"
41+
)
42+
for ref in "${refs[@]}"; do
43+
if [ ! -f "$ref" ]; then
44+
echo "ERROR: Missing reference file: $ref"
45+
exit 1
46+
fi
47+
done
48+
echo "All 7 reference files present"
49+
50+
- name: Check example files exist
51+
run: |
52+
examples=(
53+
"skills/memory-bank/examples/solo-fullstack.md"
54+
"skills/memory-bank/examples/team-backend.md"
55+
"skills/memory-bank/examples/monorepo.md"
56+
"skills/memory-bank/examples/minimal.md"
57+
)
58+
for ex in "${examples[@]}"; do
59+
if [ ! -f "$ex" ]; then
60+
echo "ERROR: Missing example file: $ex"
61+
exit 1
62+
fi
63+
done
64+
echo "All 4 example files present"
65+
66+
- name: Validate marketplace.json
67+
run: |
68+
python3 -m json.tool .claude-plugin/marketplace.json > /dev/null
69+
echo "marketplace.json is valid JSON"
70+
71+
- name: Check for secrets
72+
run: |
73+
if grep -rn "sk-[a-zA-Z0-9]\{20,\}" skills/ ; then
74+
echo "ERROR: Possible API key detected"
75+
exit 1
76+
fi
77+
if grep -rn "password\s*=\s*['\"]" skills/ ; then
78+
echo "ERROR: Possible password detected"
79+
exit 1
80+
fi
81+
echo "No secrets detected"
82+
83+
- name: Report
84+
run: |
85+
echo ""
86+
echo "=== Validation Complete ==="
87+
files=$(find skills/ -name "*.md" | wc -l)
88+
lines=$(find skills/ -name "*.md" -exec cat {} + | wc -l)
89+
echo "Skill files: $files"
90+
echo "Total lines: $lines"
91+
echo "All checks passed"

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
<br/>
66

7+
[![GitHub stars](https://img.shields.io/github/stars/Nagendhra-web/memory-bank?style=for-the-badge&labelColor=1a1a2e&color=7F77DD)](https://github.com/Nagendhra-web/memory-bank/stargazers)
8+
[![GitHub issues](https://img.shields.io/github/issues/Nagendhra-web/memory-bank?style=for-the-badge&labelColor=1a1a2e&color=378ADD)](https://github.com/Nagendhra-web/memory-bank/issues)
79
![version](https://img.shields.io/badge/version-2.0.0-7F77DD?style=for-the-badge&labelColor=1a1a2e)
810
![license](https://img.shields.io/badge/license-Apache_2.0-1D9E75?style=for-the-badge&labelColor=1a1a2e)
9-
![standard](https://img.shields.io/badge/agentskills.io-standard-378ADD?style=for-the-badge&labelColor=1a1a2e)
10-
![works with](https://img.shields.io/badge/Claude_Code-ready-D85A30?style=for-the-badge&labelColor=1a1a2e)
1111
![token savings](https://img.shields.io/badge/token_savings-60--80%25-FFD700?style=for-the-badge&labelColor=1a1a2e)
12+
![works with](https://img.shields.io/badge/Claude_Code-ready-D85A30?style=for-the-badge&labelColor=1a1a2e)
13+
![standard](https://img.shields.io/badge/agentskills.io-standard-378ADD?style=for-the-badge&labelColor=1a1a2e)
14+
[![CI](https://img.shields.io/github/actions/workflow/status/Nagendhra-web/memory-bank/validate.yml?style=for-the-badge&labelColor=1a1a2e&label=CI)](https://github.com/Nagendhra-web/memory-bank/actions)
1215
![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen?style=for-the-badge&labelColor=1a1a2e)
1316

1417
<br/>

0 commit comments

Comments
 (0)