opencode-froggy 0.5.1 → 0.7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-froggy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "OpenCode plugin with a hook layer (tool.before.*, session.idle...), agents (code-reviewer, doc-writer), and commands (/review-pr, /commit)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-release
|
|
3
|
+
description: >
|
|
4
|
+
Prepare and execute a release with version bumping, changelog updates, tags, and GitHub release creation.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Code Release Skill
|
|
8
|
+
|
|
9
|
+
## CRITICAL CONSTRAINT
|
|
10
|
+
|
|
11
|
+
You MUST NOT change versions, tags, or publish without explicit user confirmation.
|
|
12
|
+
Any destructive or remote action requires confirmation, including:
|
|
13
|
+
- `git commit`
|
|
14
|
+
- `git tag`
|
|
15
|
+
- `git push`
|
|
16
|
+
- `gh release create`
|
|
17
|
+
|
|
18
|
+
## Step 1: Determine last released version
|
|
19
|
+
|
|
20
|
+
1. Prefer the latest Git tag that matches `v<semver>`.
|
|
21
|
+
2. If no matching tag exists, use the version in `package.json`.
|
|
22
|
+
3. Collect commits since the last version (tag to `HEAD`).
|
|
23
|
+
|
|
24
|
+
## Step 2: Propose version bump
|
|
25
|
+
|
|
26
|
+
Analyze commits since the last version and recommend a semver bump:
|
|
27
|
+
- **major**: breaking changes or incompatible behavior changes.
|
|
28
|
+
- **minor**: new features with backward compatibility.
|
|
29
|
+
- **patch**: fixes and internal changes only.
|
|
30
|
+
|
|
31
|
+
Present the recommendation and ask the user to confirm before changing any files.
|
|
32
|
+
|
|
33
|
+
## Step 3: Update release artifacts (after confirmation)
|
|
34
|
+
|
|
35
|
+
- Update the version in `package.json`.
|
|
36
|
+
- Update `CHANGELOG` with a new section for the version.
|
|
37
|
+
- Summarize changes based on the commit range.
|
|
38
|
+
- Preserve the existing changelog format.
|
|
39
|
+
|
|
40
|
+
## Step 4: Tag and publish (after confirmation)
|
|
41
|
+
|
|
42
|
+
- Commit release changes with a clear release message.
|
|
43
|
+
- Create an annotated tag (for example, `vX.Y.Z`).
|
|
44
|
+
- Push commits, then push tags.
|
|
45
|
+
- Create a GitHub release using `gh release create` with the changelog section as the body.
|
|
46
|
+
|
|
47
|
+
## Output format
|
|
48
|
+
|
|
49
|
+
- Summary of the last version, commit range, and recommended bump.
|
|
50
|
+
- Explicit confirmation request before making changes.
|
|
51
|
+
- After completion, list commands run and the release URL.
|
|
@@ -3,9 +3,6 @@ name: code-review
|
|
|
3
3
|
description: >
|
|
4
4
|
Review code changes for quality, correctness, and security. Load after receiving
|
|
5
5
|
a diff or before merging changes.
|
|
6
|
-
use_when: >
|
|
7
|
-
Use this skill when the user asks for a code review, or when you need to analyze
|
|
8
|
-
changes for quality and correctness before they are committed or merged.
|
|
9
6
|
---
|
|
10
7
|
|
|
11
8
|
# Code Review Skill
|
|
@@ -4,8 +4,9 @@ description: >
|
|
|
4
4
|
Simplify code you just wrote or modified. Load after completing a feature, fix, or refactor
|
|
5
5
|
to improve clarity while preserving behavior.
|
|
6
6
|
use_when: >
|
|
7
|
-
After
|
|
8
|
-
marking task complete.
|
|
7
|
+
REQUIRED: After completing a coding task (feature, bug fix, refactor) where code files were modified,
|
|
8
|
+
call skill({ name: "code-simplify" }) as a final quality check BEFORE marking the task complete.
|
|
9
|
+
This includes: multi-file changes, substantial modifications (>30 lines), or any new feature implementation.
|
|
9
10
|
---
|
|
10
11
|
|
|
11
12
|
# Code Simplification Skill
|