papermc-skill 1.0.1 → 1.2.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/.cursor/rules/paper-plugin-dev.mdc +23 -0
- package/.cursorrules +6 -0
- package/.paseo/rules.md +8 -0
- package/.pi/rules.md +8 -0
- package/.windsurfrules +7 -0
- package/CHANGELOG.md +50 -0
- package/CLAUDE.md +27 -0
- package/CODEX.md +12 -0
- package/DEEPSEEK.md +18 -0
- package/README.md +73 -33
- package/assets/banner-animated.svg +360 -0
- package/assets/banner.svg +360 -0
- package/bin/cli.js +565 -35
- package/docs/01-modern-paper-architecture.md +48 -51
- package/docs/02-adventure-and-minimessage.md +48 -52
- package/docs/03-persistent-data-container.md +39 -39
- package/docs/04-commands-and-brigadier.md +32 -35
- package/docs/05-concurrency-and-folia.md +44 -44
- package/docs/06-events-and-listeners.md +30 -31
- package/docs/07-best-practices-and-perf.md +39 -40
- package/docs/08-gui-and-menus.md +34 -37
- package/docs/09-custom-items-and-combat.md +25 -33
- package/docs/10-database-and-storage.md +27 -27
- package/docs/11-security-and-exploit-prevention.md +233 -0
- package/docs/12-data-components-and-display-entities.md +264 -0
- package/docs/13-multi-agent-system-and-tooling.md +90 -0
- package/package.json +17 -4
- package/skills/paper-plugin-dev/SKILL.md +425 -114
- package/templates/paper-modern-template/.gradle/9.7.1/checksums/checksums.lock +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/checksums/md5-checksums.bin +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/checksums/sha1-checksums.bin +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/fileHashes/fileHashes.bin +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/fileHashes/fileHashes.lock +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/fileHashes/resourceHashesCache.bin +0 -0
- package/templates/paper-modern-template/.gradle/9.7.1/kotlin-dsl-plugin-entries/kotlin-dsl-plugin-entries.lock +0 -0
- package/templates/paper-modern-template/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/templates/paper-modern-template/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/templates/paper-modern-template/build/classes/java/main/com/example/paperplugin/ExamplePaperPlugin.class +0 -0
- package/templates/paper-modern-template/build/classes/java/main/com/example/paperplugin/PaperPluginBootstrap.class +0 -0
- package/templates/paper-modern-template/build/classes/java/main/com/example/paperplugin/command/HelloCommand.class +0 -0
- package/templates/paper-modern-template/build/classes/java/main/com/example/paperplugin/listener/PlayerEventListener.class +0 -0
- package/templates/paper-modern-template/build/classes/java/main/com/example/paperplugin/util/SchedulerAdapter.class +0 -0
- package/templates/paper-modern-template/build/tmp/compileJava/previous-compilation-data.bin +0 -0
- package/templates/paper-modern-template/build.gradle.kts +7 -7
- package/templates/paper-modern-template/src/main/java/com/example/paperplugin/ExamplePaperPlugin.java +6 -6
- package/templates/paper-modern-template/src/main/java/com/example/paperplugin/PaperPluginBootstrap.java +2 -2
- package/templates/paper-modern-template/src/main/java/com/example/paperplugin/command/HelloCommand.java +2 -4
- package/templates/paper-modern-template/src/main/java/com/example/paperplugin/data/PluginDataKeys.java +2 -2
- package/templates/paper-modern-template/src/main/java/com/example/paperplugin/listener/PlayerEventListener.java +6 -7
- package/templates/paper-modern-template/src/main/java/com/example/paperplugin/util/SchedulerAdapter.java +6 -6
- package/templates/paper-modern-template/src/main/resources/config.yml +5 -5
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# 13. Multi-Agent System & Universal AI Tooling Setup
|
|
2
|
+
|
|
3
|
+
Modern Minecraft plugin engineering demands high precision, zero memory leaks, thread safety across Folia regions, and exploit-proof business logic.
|
|
4
|
+
**PaperMC Skill** is designed to work seamlessly as a universal agentic skill across all premier AI coding platforms:
|
|
5
|
+
|
|
6
|
+
- 🌌 **Antigravity / agy** (Google Antigravity & AGY CLI)
|
|
7
|
+
- 🧠 **Claude Code** (Anthropic)
|
|
8
|
+
- ⚡ **OpenAI Codex / Codex CLI**
|
|
9
|
+
- 🖱️ **Cursor IDE**
|
|
10
|
+
- 🐋 **DeepSeek Harness**
|
|
11
|
+
- 🧭 **Paseo**
|
|
12
|
+
- 🥧 **pi.dev**
|
|
13
|
+
- 🏄 **Windsurf IDE**
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 🚀 One-Command Universal Installation
|
|
18
|
+
|
|
19
|
+
Install the PaperMC development skill into any agent environment using the zero-dependency CLI:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Interactive Mode (choose your target agent)
|
|
23
|
+
npx papermc-skill install-skill
|
|
24
|
+
|
|
25
|
+
# Install globally to all supported agent configurations
|
|
26
|
+
npx papermc-skill install-skill --all
|
|
27
|
+
|
|
28
|
+
# Target a specific AI Agent
|
|
29
|
+
npx papermc-skill install-skill --agent agy # Antigravity (~/.gemini/config/skills)
|
|
30
|
+
npx papermc-skill install-skill --agent claude # Claude Code (~/.claude & CLAUDE.md)
|
|
31
|
+
npx papermc-skill install-skill --agent codex # OpenAI Codex (~/.codex & CODEX.md)
|
|
32
|
+
npx papermc-skill install-skill --agent cursor # Cursor (.cursor/rules & .cursorrules)
|
|
33
|
+
npx papermc-skill install-skill --agent deepseek # DeepSeek Harness (~/.deepseek & DEEPSEEK.md)
|
|
34
|
+
npx papermc-skill install-skill --agent paseo # Paseo (~/.paseo & .paseo/rules.md)
|
|
35
|
+
npx papermc-skill install-skill --agent pi # pi.dev (~/.pi & .pi/rules.md)
|
|
36
|
+
npx papermc-skill install-skill --agent windsurf # Windsurf (.windsurfrules)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 🤖 Detailed Agent Configuration Guidelines
|
|
42
|
+
|
|
43
|
+
### 1. Google Antigravity / agy CLI
|
|
44
|
+
- **Global Path**: `~/.gemini/config/skills/paper-plugin-dev/`
|
|
45
|
+
- **Workspace Path**: `.agents/skills/paper-plugin-dev/`
|
|
46
|
+
- **Behavior**: Antigravity automatically indexes `SKILL.md` in its semantic agent registry. When working on any repository with Java, Gradle, or `paper-plugin.yml`, Antigravity activates the skill to enforce Folia threading rules, MiniMessage color parsing, and exploit prevention.
|
|
47
|
+
|
|
48
|
+
### 2. Claude Code (Anthropic)
|
|
49
|
+
- **Local Rule File**: `CLAUDE.md` in workspace root.
|
|
50
|
+
- **Global Skill Directory**: `~/.claude/skills/paper-plugin-dev/`
|
|
51
|
+
- **Claude Code Invocation**:
|
|
52
|
+
Claude Code reads `CLAUDE.md` upon session startup. The file instructs Claude to:
|
|
53
|
+
1. Ban legacy `ChatColor` and `org.bukkit.scheduler.BukkitRunnable`.
|
|
54
|
+
2. Implement `io.papermc.paper.threadedregions.scheduler.RegionScheduler` on Folia.
|
|
55
|
+
3. Validate all economy / number arguments against NaN and infinite numbers.
|
|
56
|
+
4. Run `npx papermc-skill audit` before concluding PRs or git commits.
|
|
57
|
+
|
|
58
|
+
### 3. OpenAI Codex
|
|
59
|
+
- **Workspace Directive**: `CODEX.md` in workspace root.
|
|
60
|
+
- **Global Store**: `~/.codex/skills/paper-plugin-dev/`
|
|
61
|
+
- **Codex Instructions**: Codex references the strict recipes in `skills/paper-plugin-dev/SKILL.md` when generating commands with Brigadier or storing persistent data via `PersistentDataContainer`.
|
|
62
|
+
|
|
63
|
+
### 4. Cursor IDE
|
|
64
|
+
- **Rule Specification**: `.cursor/rules/paper-plugin-dev.mdc`
|
|
65
|
+
- **Glob Pattern**: `**/*.java`, `**/*.gradle.kts`, `**/paper-plugin.yml`, `**/config.yml`
|
|
66
|
+
- **Cursor Integration**: Whenever you edit Java files or gradle configurations in Cursor, Cursor applies the MDC rule to enforce Adventure component building, asynchronous database queries, and debounce-protected GUI handlers.
|
|
67
|
+
|
|
68
|
+
### 5. DeepSeek Harness
|
|
69
|
+
- **Workspace File**: `DEEPSEEK.md`
|
|
70
|
+
- **Global Harness**: `~/.deepseek/skills/paper-plugin-dev/`
|
|
71
|
+
- **DeepSeek Execution**: DeepSeek models use step-by-step reasoning on concurrency boundaries to ensure no synchronous block or inventory mutation occurs off the Bukkit/Folia main tick thread.
|
|
72
|
+
|
|
73
|
+
### 6. Paseo & pi.dev
|
|
74
|
+
- **Paseo**: `.paseo/rules.md` and `~/.paseo/skills/paper-plugin-dev/`
|
|
75
|
+
- **pi.dev**: `.pi/rules.md` and `~/.pi/skills/paper-plugin-dev/`
|
|
76
|
+
- Both agents automatically digest the markdown instructions and provide proactive suggestions when scaffolding plugins.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 🛡️ Built-in Security & Quality Gate
|
|
81
|
+
|
|
82
|
+
No matter which agent you use, ensure the AI executes the automated auditor before shipping code:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Audit plugin codebase for vulnerabilities and outdated APIs
|
|
86
|
+
npx papermc-skill audit
|
|
87
|
+
|
|
88
|
+
# Verify PaperMC version compatibility
|
|
89
|
+
npx papermc-skill check-update
|
|
90
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "papermc-skill",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "Interactive CLI and architectural development skill for modern Paper & Folia Minecraft Java plugins",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Interactive CLI, multi-agent AI installer, and architectural development skill for modern Paper & Folia Minecraft Java plugins",
|
|
5
5
|
"main": "bin/cli.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"papermc-skill": "bin/cli.js"
|
|
@@ -12,6 +12,15 @@
|
|
|
12
12
|
"templates",
|
|
13
13
|
"docs",
|
|
14
14
|
"skills",
|
|
15
|
+
"assets",
|
|
16
|
+
"CLAUDE.md",
|
|
17
|
+
"CODEX.md",
|
|
18
|
+
"DEEPSEEK.md",
|
|
19
|
+
".cursor",
|
|
20
|
+
".cursorrules",
|
|
21
|
+
".paseo",
|
|
22
|
+
".pi",
|
|
23
|
+
".windsurfrules",
|
|
15
24
|
"README.md",
|
|
16
25
|
"CHANGELOG.md",
|
|
17
26
|
"LICENSE"
|
|
@@ -24,8 +33,12 @@
|
|
|
24
33
|
"minecraft-plugin",
|
|
25
34
|
"adventure-api",
|
|
26
35
|
"minimessage",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
36
|
+
"data-components",
|
|
37
|
+
"display-entities",
|
|
38
|
+
"claude-code",
|
|
39
|
+
"cursor",
|
|
40
|
+
"deepseek",
|
|
41
|
+
"openai-codex",
|
|
29
42
|
"npx"
|
|
30
43
|
],
|
|
31
44
|
"author": "Ardian Ryan <https://github.com/ardianryan>",
|