- Installs
- 111
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/aperivue/medsci-skills --skill publish-skill- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads publish-skill automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Skill: publish-skill
Phase 0: Init and Identify Source
Required Inputs
Collect from the user:
- Source skill path: directory containing the personal skill (e.g.,
~/.claude/skills/my-skill/or~/.agents/skills/my-skill/) - Target package path: directory of the distributable package (e.g.,
~/workspace/<your-package>/) - Target license: license of the package — ask; offer MIT as the default, never assume it
Actions
- Read
SKILL.mdfrom the source skill directory - Inventory all files recursively (
ls -R) - Classify skill type:
- Standalone: self-contained skill with no agent delegation
- Orchestrator: delegates to sub-agents (NOT suitable for distribution without refactoring)
- Wrapper: thin wrapper around another tool/API
- Present inventory table to the user:
| File | Lines | Type | Notes |
|------|-------|------|-------|
Make every later fix on a working copy (<cleaned_skill_path> below) or in the target directory.
NEVER modify the source skill in place, because it is the user's working original.
Gate: User confirms source skill and target package before proceeding.
Phase 0.5: Skill-Worthiness Gate
Before spending effort on PII scrubbing and generalization, confirm the workflow is worth distributing as a skill at all. Apply all three gates:
| Gate | Question | Pass condition |
|---|---|---|
| Uniqueness | Could a competent user get the same result by searching the web for ~5 minutes, or by asking a general assistant with no skill installed? | No |
| Specificity | Does it encode a workflow, decision heuristic, constraint, or convention specific to this domain or a recurring task — rather than a generic code snippet or a standard-library example? | Yes |
| Effort | Did discovering it take real debugging, study design, operational effort, or a reviewer-anticipation lesson (a pitfall, a verification step, a domain convention)? | Yes |
Gate: Any "no" (or "yes" on the inverse) stops publication — recommend documentation or a memory note instead. If the value is real but the skill delegates to private agents, route through Phase 1's orchestrator finding (refactor to standalone first). Only a clear three-way pass proceeds.
Phase 1: Originality Check
Checks
- External source: Is this skill adapted from another package or author? Check for attribution headers, license blocks, or "based on" comments.
- Third-party content: Do any files in
references/come from external sources (published guidelines, textbooks, standards bodies)? - Competitive sensitivity: Does the skill reveal proprietary business logic or competitive advantage that should remain private? Ask the user; never make this judgment call yourself.
Decision Matrix
| Finding | Action |
|---|---|
| Fully original | Proceed to Phase 2 |
| Adapted with compatible license | Add attribution header, proceed |
| Contains non-compatible third-party content | Flag for removal or URL reference conversion |
| Orchestrator with private agent references | STOP -- requires refactoring to standalone first |
| Competitive/proprietary logic | STOP -- not suitable for open-source |
Phase 2: PII De-identification Audit
Zero tolerance: the skill must have exactly 0 PII matches before proceeding.
Pre-scan Setup
Before running, ask the user for everything unique to them that should also count as a PII hit:
- Their name(s) in all languages and romanizations (a placeholder shape:
<First Last>|<native-script name>) - Their institutional affiliation(s) (a placeholder shape:
<Institution>|<Hospital>) - Any collaborator surnames that may appear in drafts or filenames
Combine the inputs into a single grep -E alternation pattern (pipe-separated).
Automated Scan
Run the bundled audit script. The first argument is the skill directory; the second is the user-specific alternation pattern from Pre-scan Setup.
bash ${CLAUDE_SKILL_DIR}/scripts/audit_skill.sh --strict <source_skill_path> \
"<First Last>|<native-script name>|<Institution>|<Hospital>"
The script scans ten categories, plus the user pattern:
- Hardcoded paths (
/Users/<name>/,/home/<name>/,~/Documents,~/Desktop,~/Downloads,~/Projects) - Email addresses (any address-shaped string)
- IP addresses / internal URLs (
*.internal,*.local,*.corp) - Institutional references (SNUH / AMC / SMC / KAIST / SNU / ASAN / MGH / UCSF / Mayo Clinic / Johns Hopkins / Samsung Medical / Severance / Asan Medical)
- Academic roles with names (
professor <Surname>,Prof. <Surname>,Dr. <Surname>,PGY[0-9],<한글이름> 교수님) - Language hardcoding ("in Korean", "한국어로", "in Japanese", "in Chinese")
- Location specifics (Seoul / Busan / Daegu / Tokyo / Beijing / Shanghai / Boston / Stanford and Korean variants)
- Blockquote dated precedent (
> YYYY-MM-DD ...lines that reveal an internal review timeline) - Author-style filenames (
<Surname>{Year}_*pattern, e.g.,<Surname>2025_<Journal>_Fig01.png; allow-list excludes generic tokens likeIssue2024_,Sample2025_) - Binary EXIF metadata (DOCX / PPTX / XLSX / PDF / PNG / JPG / TIFF — scanned via
exiftoolfor home paths, email addresses and the user pattern, matched case-insensitively. If binaries are present andexiftoolis not installed, the RESULT line reads INCOMPLETE and--strictexits 3)
Exit codes: 0 clean, 1 findings, 2 usage error / invalid user regex / a scan that could not run, 3 (--strict only) a check that could not run. Only exit 0 means clean.
Known limits: the Korean role branch (item 5) requires the honorific -nim suffix. A bare third-person mention (a Korean name followed by the role word without -nim) is not caught by this script, because separating it from job descriptions such as "advising professor" needs a stoplist that grep -E cannot express. Check such mentions by hand.
Cross-validation
For categories the script flags, also verify manually with the Grep tool against ${CLAUDE_SKILL_DIR}/references/pii-patterns.md. Pay particular attention to:
- Names not in the extra-patterns argument (e.g., a co-author who appeared only in one early draft)
- Domain-specific institutional acronyms (your institution may not be in the default list)
- Project-specific identifiers like
CK-NN,MA-NN, dated cohort names
Output Format
Present all findings in a remediation table:
| # | File:Line | Category | Match | Suggested Fix |
|---|-----------|----------|-------|---------------|
Gate: User reviews all findings. Fix each one in the working copy. Re-run the audit on the working copy. Proceed only when 0 hits are confirmed.
Phase 3: Generalization
Language
- Replace:
"in Korean"/"한국어로"/"Korean language"→"in the user's preferred language" - Replace:
"communicate in [specific language]"→"Communicate with the user in their preferred language" - Keep: multilingual trigger keywords in the
metadata.triggersfield (or the target package's equivalent) (these aid discovery)
Role
- Replace:
"radiology researcher"→"medical researcher"(if the skill is domain-general) - Replace:
"professor"/"fellow"→"researcher"or"user"(context-dependent) - Keep: domain-specific terms that define the skill's scope (e.g., "diagnostic accuracy" is fine)
Paths
- Replace: hardcoded absolute paths →
${CLAUDE_SKILL_DIR}for bundled reference files - Replace:
~/Documents/...→ user-provided output directory - Keep: relative paths within the skill directory structure
Environment
- Remove: assumptions about specific OS (macOS, Linux)
- Remove: assumptions about specific editors or IDEs
- Remove: references to personal infrastructure (agents, other personal skills)
- Keep: tool requirements, described in the skill body (a prerequisites section). The schema has no
tools:field, andallowed-toolspre-approves tools rather than describing them, so do not move requirements there
Interoperability
- Check: does the skill reference other skills by name (e.g., "route to
analyze-stats")? - If referenced skill exists in target package: keep the reference
- If referenced skill does NOT exist in target package: make it optional with fallback instructions
Output
Show a unified diff of all generalization changes for user review.
Phase 4: License Compatibility Check
For each file in the skill's references/ and scripts/ directories:
- Check for license headers or declarations within the file
- Check for LICENSE files in the same directory
- If the file contains content from a known standard (reporting guidelines, clinical scores, etc.), identify the source and its license
Classify each file with ${CLAUDE_SKILL_DIR}/references/license-compatibility-matrix.md (written
for an MIT target; it also lists common checklist and package licenses). Bundle compatible content
with the attribution header or license notice it requires; convert non-compatible content to the
matrix's URL Reference Pattern; mark GPL/LGPL tools as optional external dependencies; treat an
unknown license as incompatible (remove, or get permission).
Output
Present license audit table:
| File | Source | License | Compatible? | Action |
|------|--------|---------|------------|--------|
Phase 5: Validate and Test
Structural Validation
- YAML frontmatter: Parse and verify the required fields (
nameanddescriptionper the Agent Skills spec, plus any field the target package's own validator requires) - File references: Every
${CLAUDE_SKILL_DIR}/...path resolves to an actual file - Script executability: Scripts in
scripts/have appropriate shebangs - Line count: SKILL.md should be under 500 lines for optimal loading
- Description quality: Description should start with a verb and include trigger keywords
Final PII Re-check
Run audit_skill.sh --strict one final time on the cleaned skill. Must return exit code 0.
Cross-Platform Adapter Review
Check whether the skill can run in common desktop-agent environments:
| Platform | Check |
|---|---|
| Claude Code | No hardcoded dependency on private ~/.claude paths unless documented. |
| Codex | SKILL.md is self-contained and installable under ~/.agents/skills/. |
| Cursor | A short .cursor/rules/*.mdc adapter can point to the canonical SKILL.md. |
| Windows | Commands avoid Unix-only assumptions or provide PowerShell/Python alternatives. |
| macOS/Linux | Shell examples use portable paths where possible. |
If the package is intended for a workshop or classroom, read
${CLAUDE_SKILL_DIR}/references/classroom-distribution.md and follow it (direct-download ZIPs,
release assets, classroom checklist).
README Entry Draft
Generate a table row matching the target package's README format:
| **{skill-name}** | {One-sentence description of what the skill does.} |
User Testing
Instruct the user to:
- Copy the cleaned skill to a test location:
cp -r <cleaned_skill> ~/.claude/skills/<skill-name> - Restart Claude Code
- Test the skill triggers by typing
/<skill-name>or relevant trigger phrases - Verify all phases work end-to-end on a sample input
Gate: User confirms testing is complete.
Phase 6: Package and Commit
Copy to Target Package
cp -r <cleaned_skill_path> <target_package>/skills/<skill-name>/
Update README
Apply the README entry drafted in Phase 5:
- Add row to the appropriate table (Available Now / Coming Soon)
- Update pipeline diagram if the skill adds a new stage
- Update skill count if mentioned in prose
Generate Commit Commands
Present the exact commands but do NOT auto-execute push:
cd <target_package>
git add skills/<skill-name>/
git add README.md
git diff --cached # User reviews
git commit -m "Add <skill-name>: <one-line description>"
Gate: User reviews git diff --cached and explicitly approves the commit. Push is always manual.
Post-Publish
Remind the user to:
- Add the skill to any marketplace listings if applicable
- Test installation from a clean clone:
git clone <repo> && cp -r <repo>/skills/<skill-name> ~/.claude/skills/ - For classroom distribution, finish the release steps in
references/classroom-distribution.md.
FAQ
What does the publish-skill skill do?
Use when turning a personal agent skill into an open-source, distributable one. Runs a PII audit, generalizes personal details, checks licence compatibility, reviews cross-platform adapters and walks through packaging.
How do I install publish-skill?
Run npx skills add https://github.com/aperivue/medsci-skills --skill publish-skill in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/publish-skill/ (personal) or .claude/skills/publish-skill/ (project).
Which AI agents can use publish-skill?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is publish-skill safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains publish-skill?
It is published by aperivue in aperivue/medsci-skills. It has 111 recorded installs.
More from aperivue/medsci-skills
check-reporting
aperivue/medsci-skills
Use when auditing a manuscript item by item against a reporting guideline or risk-of-bias tool. Covers 49 reporting guidelines and risk-of-bias tools (STROBE, CONSORT, STARD, TRIPOD+AI, PRISMA, QUADAS and more), marking each item PRESENT, PARTIAL or MISSING. Not a reviewer critique (/self-review).
meta-analysis
aperivue/medsci-skills
Use when running a systematic review and meta-analysis, DTA or intervention. Covers PROSPERO protocol, search, screening, extraction, risk of bias (QUADAS-3, RoB 2, ROBINS-I), bivariate/HSROC or random-effects pooling, forest plots, heterogeneity and PRISMA reporting. Topic scouting is /ma-scout.
make-figures
aperivue/medsci-skills
Use when a paper needs publication-ready figures or a visual abstract. Makes ROC, forest, calibration, Kaplan-Meier and Bland-Altman plots, CONSORT/STARD/PRISMA flow diagrams, confusion matrices, pipeline diagrams and journal visual abstracts, checking the journal's AI-image policy first.
analyze-stats
aperivue/medsci-skills
Use when data needs statistical analysis. Runs reproducible Python/R code for Table 1, diagnostic accuracy, agreement, regression, survival, propensity score, survey-weighted and repeated-measures models, with publication tables. Sample size is /calc-sample-size; pooling studies is /meta-analysis.
verify-refs
aperivue/medsci-skills
Use when checking whether a manuscript's references are real. Audits each citation against PubMed and CrossRef, flags fabricated or mismatched entries and writes qc/referenceaudit.json. Audit-only; never edits references or refs.bib. Citation-key checks are /manage-refs.
search-lit
aperivue/medsci-skills
Use when finding papers or building a reference list. Searches PubMed, Semantic Scholar and bioRxiv/medRxiv, includes only references verified through an API, and generates BibTeX. Auditing an existing reference list is /verify-refs.
Popular security skills
azure-compliance
microsoft/azure-skills
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
minimal-run-and-audit
lllllllama/rigorpilot-skills
Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.
seo-audit
coreyhaines31/marketingskills
When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.
firebase-security-rules-auditor
firebase/agent-skills
Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.
security-audit
cloudflare/security-audit-skill
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
competitors
coreyhaines31/marketingskills
When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.
