agentleFS
yya007yya007/SkillFinder/skills/npm-release/SKILL.md

npm-release

Skill4 starsChanged 5 months agoMITView on GitHub

Publish the @yya007/skill-finder npm package. Guides through login check, OSS precheck (secrets scan + README accuracy), dry-run preview, local smoke test, version bump (patch/minor/major), npm publish, and git tag.

  • Reads credentials
  • Deletes or force-pushes
  • Installs packages
  • Commits and pushes

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. luochang212/skill-zoo★ 115same name
    2. jscraik/Agent-Skills★ 9same name
    3. relvo-labs/agent-runtime★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill triggers, follow these steps in order.

    line 22
  2. Very specific:

    If the command fails or returns a user other than yya007, stop and tell the user:

    line 32
  3. Distinctive:

    Run this before touching the package to catch anything that shouldn't ship.

    line 49
  4. Distinctive:

    3a — Secrets scan: search all tracked files for credentials.

    line 51
  5. Very specific:

    If any real secrets are found (not placeholders like ghp_your_token_here or fake-token), stop immediately and tell the user.

    line 61
  6. Very specific:

    Check that the skill count in the README matches data/version.txt:

    line 73
  7. Distinctive:

    If the skill count in the README is stale (off by more than a minor rounding), update the stats marker and the tagline count, then commit …

    line 100
  8. Distinctive:

    If outdated filter rules are detected, fix README's "What gets indexed" section before proceeding.

    line 102
  9. Very specific:

    If unexpected files appear, stop and ask the user to review .npmignore and the files list in package.json.

    line 119
  10. Distinctive:

    Verify the installed file tree is correct:

    line 139
  11. Very specific:

    All five scripts/*.py files exist.

    line 147
  12. Distinctive:

    Run a live search from the installed package location to confirm index loads and results are returned:

    line 157
  13. Very specific:

    Use the bump type from Step 2.

    line 179
  14. Distinctive:

    If the user found it helpful, remind them:

    line 232

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

npm-release

Publish @yya007/skill-finder to npmjs.com with a guided release workflow.

Agent Instructions

When this skill triggers, follow these steps in order. Stop and report any failure immediately.


Step 1 — Verify npm login

npm whoami

If the command fails or returns a user other than yya007, stop and tell the user:

"Not logged in to npm. Run npm login first."


Step 2 — Show current version

node -p "require('./package.json').version"

Report the current version to the user and ask what type of bump they want: patch, minor, or major — unless they already specified it.


Step 3 — OSS precheck

Run this before touching the package to catch anything that shouldn't ship.

3a — Secrets scan: search all tracked files for credentials.

git ls-files | xargs grep -l "ghp_[a-zA-Z0-9]\{36\}\|npm_[a-zA-Z0-9]\{36\}\|sk-[a-zA-Z0-9]\{32\}" 2>/dev/null
git ls-files | xargs grep -rn "password\s*=\s*['\"][^'\"]\|api_key\s*=\s*['\"][^'\"]\|secret\s*=\s*['\"][^'\"]" 2>/dev/null

If any real secrets are found (not placeholders like ghp_your_token_here or fake-token), stop immediately and tell the user.

3b — Sensitive files check: confirm no .env, credential, or key files are tracked.

git ls-files | grep -E "\.(env|key|pem|p12|pfx|crt|secret)$|credentials|\.npmrc$"

Any output here is a blocker — remove those files and purge from git history before proceeding.

3c — README accuracy check:

Check that the skill count in the README matches data/version.txt:

python3 -c "
import re, sys
readme = open('README.md').read()
version = open('data/version.txt').read()

# Extract actual count from version.txt
actual = int(re.search(r'skill_count:\s*(\d+)', version).group(1))

# Extract the rounded/displayed count from stats marker
m = re.search(r'stats:skill-count:start -->(.*?)<!--', readme)
displayed = m.group(1).strip() if m else 'NOT FOUND'

print(f'data/version.txt skill_count: {actual:,}')
print(f'README stats marker:          {displayed}')

# Check filter logic description is accurate
if 'Listed in a curated registry' in readme or 'SkillHub rank S or A' in readme:
    print('WARN: README still contains outdated filter rules (curated registry / SkillHub rank exemptions)')
    sys.exit(1)
else:
    print('OK: filter logic description looks current')
"

If the skill count in the README is stale (off by more than a minor rounding), update the stats marker and the tagline count, then commit the fix before proceeding.

If outdated filter rules are detected, fix README's "What gets indexed" section before proceeding.


Step 4 — Dry run (always run before publishing)

npm publish --dry-run 2>&1

Show the user the list of files that would be included. Confirm:

  • scripts/search.py, scripts/requirements.txt, scripts/__init__.py are present.
  • scripts/fetch_skill.py and scripts/update_index.py are not present (developer-only tools, excluded from the npm package — available in the git repo).
  • data/index.faiss, data/metadata.jsonl, data/version.txt are present.
  • SKILL.md and plugin.json are present.
  • No crawlers/, pipeline/, tests/, docs/, __pycache__/, or .sh files appear.

If unexpected files appear, stop and ask the user to review .npmignore and the files list in package.json.


Step 5 — Local smoke test

Pack the tarball and install it into a temporary directory to verify the package works end-to-end before publishing.

npm pack
mkdir -p /tmp/sf-release-test && \
  cd /tmp/sf-release-test && \
  npm install <path-to-repo>/yya007-skill-finder-*.tgz 2>&1

(Replace <path-to-repo> with the absolute path to the SkillFinder repo root.)

Verify the installed file tree is correct:

find /tmp/sf-release-test/node_modules/@yya007/skill-finder -type f | sort

Confirm:

  • data/index.faiss, data/metadata.jsonl, data/version.txt exist.
  • All five scripts/*.py files exist.
  • SKILL.md and plugin.json exist.
  • No __pycache__ or .sh files appear.

Install Python dependencies from the installed package:

pip install -r /tmp/sf-release-test/node_modules/@yya007/skill-finder/scripts/requirements.txt -q

Run a live search from the installed package location to confirm index loads and results are returned:

python /tmp/sf-release-test/node_modules/@yya007/skill-finder/scripts/search.py "deploy kubernetes" --no-json 2>&1 | head -20

The search must return at least one result with a name, star count, and install command. If it fails or returns no results, stop and investigate before publishing.

Clean up:

rm -rf /tmp/sf-release-test && rm -f yya007-skill-finder-*.tgz

Step 6 — Bump version

npm version <patch|minor|major> --no-git-tag-version

Use the bump type from Step 2. Report the new version (e.g. 0.1.0 → 0.1.1).


Step 7 — Publish

npm publish --access public

npm will prompt for a one-time password if 2FA is enabled. Tell the user to enter their authenticator code when prompted — or pass --otp <code> if they provide it in advance.

On success, report:

"Published @yya007/skill-finder@<new-version> to npmjs.com" "View: https://www.npmjs.com/package/@yya007/skill-finder"


Step 8 — Stamp the npm version on the release log, then commit and tag

Record the published npm version against the current index release in the release-history log (idempotent; keyed by data/version.txt date):

python pipeline/update_release_log.py --npm-version <new-version>

Then commit the bump + the log update and tag:

git add package.json data/release_log.jsonl docs/release-log.md
git commit -m "chore: bump npm version to <new-version>"
git tag v<new-version>

Ask the user:

"Push the version commit and tag to GitHub? [y/N]"

If yes:

git push && git push --tags

Step 9 — Report

Summarise:

  • Package name and new version
  • Files published
  • npm URL
  • Git tag (if pushed)

If the user found it helpful, remind them:

"If SkillFinder was useful, consider starring the repo: https://github.com/yya007/SkillFinder"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.