Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:51:13 +08:00
commit b5d5675d20
5 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"name": "word-count-checker",
"description": "Checks the word count of a file.",
"version": "0.0.0-2025.11.28",
"author": {
"name": "Tim Green",
"email": "rawveg@gmail.com"
},
"skills": [
"./skills/word-count-checker"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# word-count-checker
Checks the word count of a file.

48
plugin.lock.json Normal file
View File

@@ -0,0 +1,48 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:rawveg/skillsforge-marketplace:word-count-checker",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "3fb048e658b57cba2922917c9c9122f1098c2943",
"treeHash": "9733e6341a8422b2fb52fe9b0c1821ed7c23ba9de4aa1245a2d9c66d3b0af482",
"generatedAt": "2025-11-28T10:27:55.153657Z",
"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": "word-count-checker",
"description": "Checks the word count of a file."
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "85264b10a0bd75552ce2dd65fc37bc1dd2e4ff6c85a0461ac7d3c220a5343eba"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "0170e7c55a910e3b2af1a164774467b6d25c85ccd7dd3ddaf74e16b74cf55d70"
},
{
"path": "skills/word-count-checker/plugin.json",
"sha256": "f3f041279289b747582f45299843967038dac6e78ff379928d92589d45156c32"
},
{
"path": "skills/word-count-checker/SKILL.md",
"sha256": "b2a4e65462c1689dd1bc5384e51e691e656bbb697893debe08ddfaf7f088717d"
}
],
"dirSha256": "9733e6341a8422b2fb52fe9b0c1821ed7c23ba9de4aa1245a2d9c66d3b0af482"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}

View File

@@ -0,0 +1,49 @@
---
name: word-count-checker
description: Automatically checks word counts of documents when the user mentions word count in relation to a file. Triggers on phrases like "Check the word count of X", "Stop when the word count is N", or similar references to document word counts. Use this skill proactively whenever word count is mentioned with a document reference.
---
# Word Count Checker
## Overview
This skill enables automatic word count checking when word count is mentioned in relation to a document. Instead of requiring explicit requests, trigger this skill whenever the user references word count alongside a document.
## When to Use This Skill
Trigger this skill whenever the user mentions word count in relation to a document, including phrases like:
- "Check the word count of [filename]"
- "What's the word count of [filename]"
- "Stop when the word count is [number]"
- "Keep the word count under [number]"
- "How many words are in [filename]"
- Any similar reference to word count with a document
## How to Use
When word count is mentioned with a document reference:
1. **Identify the target file** from the user's message (e.g., `article.md`, `chapter1.md`)
2. **Run the word count command** using Bash:
```bash
wc -w <filename>
```
3. **Interpret the context**:
- **Checking**: If the user asks to check word count, report the current count
- **Monitoring**: If the user mentions a target word count (e.g., "stop when word count is 4500"), compare the current count to the target and inform the user whether the goal has been met
- **Writing**: If generating or editing content with a word count constraint, check periodically and adjust as needed
4. **Report clearly**: Present the word count information in a natural, contextual way based on the user's request
## Examples
**User**: "Check the word count of article.md"
**Action**: Run `wc -w article.md` and report: "article.md has 3,245 words."
**User**: "Keep writing chapter1.md until it reaches 5000 words"
**Action**: Periodically run `wc -w chapter1.md` while writing, and stop when the count reaches or exceeds 5000 words.
**User**: "What's the word count of my draft.md?"
**Action**: Run `wc -w draft.md` and report the count naturally in response.

View File

@@ -0,0 +1,15 @@
{
"name": "word-count-checker",
"description": "Automatically checks word counts of documents when the user mentions word count in relation to a file. Prevents Claude from estimating word count of a document based on the tokens used to generate it.",
"version": "1.0.0",
"author": {
"name": "Tim Green",
"email": "rawveg@gmail.com"
},
"homepage": "https://github.com/rawveg/claude-skills-marketplace",
"repository": "https://github.com/rawveg/claude-skills-marketplace",
"license": "MIT",
"keywords": ["word count", "document", "Claude Code"],
"category": "productivity",
"strict": false
}