Skip to content

Commit f53ac05

Browse files
authored
Merge pull request #3 from jet52/claude/repackage-skill-upload-EYBkb
Claude/repackage skill upload ey bkb
2 parents c179ae1 + e5ecb86 commit f53ac05

5 files changed

Lines changed: 86 additions & 2 deletions

File tree

.github/workflows/build-zip.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build skill ZIP
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'core/**'
8+
- 'references/**'
9+
- 'scripts/**'
10+
- 'SKILL.md'
11+
- 'requirements.txt'
12+
- 'version.json'
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
build-zip:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Build brief-compliance.zip
24+
run: |
25+
tmp=$(mktemp -d)
26+
dest="$tmp/brief-compliance"
27+
mkdir -p "$dest"
28+
29+
# Copy the files that belong in the ZIP
30+
cp -r core "$dest/core"
31+
cp -r references "$dest/references"
32+
cp -r scripts "$dest/scripts"
33+
cp SKILL.md "$dest/SKILL.md"
34+
cp requirements.txt "$dest/requirements.txt"
35+
cp version.json "$dest/version.json"
36+
37+
# Remove any __pycache__ or .pyc files
38+
find "$dest" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
39+
find "$dest" -name '*.pyc' -delete 2>/dev/null || true
40+
41+
# Build the ZIP
42+
(cd "$tmp" && zip -r "$GITHUB_WORKSPACE/brief-compliance.zip" brief-compliance/)
43+
44+
- name: Check for changes
45+
id: diff
46+
run: |
47+
git diff --quiet brief-compliance.zip && echo "changed=false" >> "$GITHUB_OUTPUT" || echo "changed=true" >> "$GITHUB_OUTPUT"
48+
49+
- name: Commit updated ZIP
50+
if: steps.diff.outputs.changed == 'true'
51+
run: |
52+
git config user.name "github-actions[bot]"
53+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
54+
git add brief-compliance.zip
55+
git commit -m "Rebuild brief-compliance.zip [automated]"
56+
git push

SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: brief-compliance
3-
version: 1.1.0
3+
version: 1.2.0
44
description: >-
55
Triggers when a user uploads a legal brief PDF for compliance review against the
66
North Dakota Rules of Appellate Procedure. Analyzes the brief and produces an HTML

brief-compliance.zip

1.17 KB
Binary file not shown.

build_zip.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Rebuild brief-compliance.zip from the current source files.
3+
# Usage: ./build_zip.sh
4+
5+
set -euo pipefail
6+
7+
REPO_ROOT="$(cd "$(dirname "$0")" && pwd)"
8+
TMP=$(mktemp -d)
9+
DEST="$TMP/brief-compliance"
10+
11+
mkdir -p "$DEST"
12+
13+
cp -r "$REPO_ROOT/core" "$DEST/core"
14+
cp -r "$REPO_ROOT/references" "$DEST/references"
15+
cp -r "$REPO_ROOT/scripts" "$DEST/scripts"
16+
cp "$REPO_ROOT/SKILL.md" "$DEST/SKILL.md"
17+
cp "$REPO_ROOT/requirements.txt" "$DEST/requirements.txt"
18+
cp "$REPO_ROOT/version.json" "$DEST/version.json"
19+
20+
# Clean build artifacts
21+
find "$DEST" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
22+
find "$DEST" -name '*.pyc' -delete 2>/dev/null || true
23+
24+
# Build ZIP
25+
(cd "$TMP" && zip -r "$REPO_ROOT/brief-compliance.zip" brief-compliance/)
26+
27+
rm -rf "$TMP"
28+
echo "Built: $REPO_ROOT/brief-compliance.zip"

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.1.0",
2+
"version": "1.2.0",
33
"build_date": "2026-02-19",
44
"rules_verified": "2026-02-17",
55
"rules_freshness_days": 90,

0 commit comments

Comments
 (0)