Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:49:08 +08:00
commit 3e5634bde6
6 changed files with 160 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{
"name": "productivity-commands",
"description": "Collection of productivity-enhancing slash commands for common development workflows",
"version": "1.0.0",
"author": {
"name": "Example Developer",
"email": "developer@example.com",
"url": "https://example.com"
},
"commands": [
"./commands"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# productivity-commands
Collection of productivity-enhancing slash commands for common development workflows

27
commands/analyze-deps.md Normal file
View File

@@ -0,0 +1,27 @@
---
description: Analyze project dependencies for security vulnerabilities and outdated packages
---
# Dependency Analysis Command
Analyze project dependencies for security issues and version updates.
## Context
- Current directory: !`pwd`
- Package files: !`find . -maxdepth 2 -name "package.json" -o -name "requirements.txt" -o -name "go.mod" -o -name "Cargo.toml" 2>/dev/null`
## Your Task
1. Identify the project's dependency management system
2. Check for:
- Security vulnerabilities in dependencies
- Outdated packages
- Dependency conflicts
3. Provide a clear summary with:
- Total dependencies
- Number of vulnerabilities (if any)
- Critical updates recommended
4. Suggest commands to update or fix issues
Use appropriate tools like `npm audit`, `pip-audit`, or equivalent for the detected project type.

38
commands/project-stats.md Normal file
View File

@@ -0,0 +1,38 @@
---
description: Generate comprehensive project statistics including LOC, file counts, and language breakdown
---
# Project Statistics Command
Generate detailed statistics about the current project.
## Context
- Current directory: !`pwd`
- Git status: !`git status --short 2>/dev/null || echo "Not a git repository"`
## Your Task
Provide comprehensive project statistics:
1. **File Statistics**
- Total number of files
- Breakdown by file type
- Largest files (top 5)
2. **Code Metrics**
- Lines of code by language
- Total LOC
- Comment ratio (if detectable)
3. **Git Information** (if available)
- Current branch
- Number of commits
- Contributors
- Last commit date
4. **Project Health**
- Presence of README, LICENSE, tests
- Configuration files present
Present the information in a clean, organized format using tables or lists.

26
commands/quick-test.md Normal file
View File

@@ -0,0 +1,26 @@
---
description: Run tests for the current project quickly
allowed-tools: Bash(npm:*), Bash(pytest:*), Bash(go:*), Bash(cargo:*)
---
# Quick Test Command
Run the appropriate test suite based on the project type.
## Context
- Current directory: !`pwd`
- Package manager files: !`ls -la | grep -E "(package\.json|requirements\.txt|go\.mod|Cargo\.toml)"`
## Your Task
1. Detect the project type based on files present
2. Run the appropriate test command:
- Node.js: `npm test` or `npm run test`
- Python: `pytest` or `python -m pytest`
- Go: `go test ./...`
- Rust: `cargo test`
3. Display the test results clearly
4. If tests fail, provide a brief summary of failures
IMPORTANT: Only use the tools specified in allowed-tools. Do not use any other tools.

53
plugin.lock.json Normal file
View File

@@ -0,0 +1,53 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:rafaelcalleja/claude-market-place:plugins/productivity-commands",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "62f0ea8e3f92a0394ba532bcf30233e4a13a3d76",
"treeHash": "144e8537e9ff6bf2355dfbd0ba717fa4a0632aec65bc2166b001bb6cb20538d7",
"generatedAt": "2025-11-28T10:27:43.280478Z",
"toolVersion": "publish_plugins.py@0.2.0"
},
"origin": {
"remote": "git@github.com:zhongweili/42plugin-data.git",
"branch": "master",
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
},
"manifest": {
"name": "productivity-commands",
"description": "Collection of productivity-enhancing slash commands for common development workflows",
"version": "1.0.0"
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "335de2da30cda85f4f1da0d0ff9ca02a4595cb19cf35f7f40150c14c1d0be923"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "a0888d0bd840ca34175983d445b14cd3ec8088a1160dc585d304e9c2619cc38a"
},
{
"path": "commands/project-stats.md",
"sha256": "15bb1e985d6e038fc7728c0188979d12d4ae72ceeb5aa5707b99cd13e366797a"
},
{
"path": "commands/analyze-deps.md",
"sha256": "c3cc9e9582bfc76fab7c4fca29051c9224ab0a7beb2c2f07c915e84cba0d0493"
},
{
"path": "commands/quick-test.md",
"sha256": "9238c13df2f8a2a2e73e25c8c0d589b0501f92612f3cbc02089a0db233ea55b7"
}
],
"dirSha256": "144e8537e9ff6bf2355dfbd0ba717fa4a0632aec65bc2166b001bb6cb20538d7"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}