一键导入
learn
Analyze the current package and update (or create) its associated Claude skill with the latest patterns, APIs, and conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze the current package and update (or create) its associated Claude skill with the latest patterns, APIs, and conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Deep interview for a single feature or module brief that produces a final spec or implementation plan.
@nextnode-solutions/logger standards. Reference this skill when a project uses @nextnode-solutions/logger or when logger integration is being added.
Manage n8n workflows on the NextNode automation instance with the local n8n-cli tool.
NextNode brand guidelines — color palette, typography, logo system, and per-project branding rules. Use when doing UI/frontend work on a NextNode project.
NextNode ecosystem hub. Auto-load when working on any NextNode or SaaS project — covers nextnode.toml config, CI workflows, docker-compose rules, and cross-references to package skills.
Audit a NextNode/SaaS project against all NextNode standards — produces a compliance report with pass/fail/missing status for every required item.
基于 SOC 职业分类
| name | learn |
| description | Analyze the current package and update (or create) its associated Claude skill with the latest patterns, APIs, and conventions. |
| argument-hint | ["skill-name"] |
| user-invocable | true |
| allowed-tools | AskUserQuestion, Read, Glob, Grep, Edit, Write, Bash |
Analyze the current package/project codebase and update the associated Claude Code skill with the latest patterns, APIs, conventions, and best practices extracted from the source code.
Read the project identity from the current working directory:
package.json — extract name, description, main/exports, scriptsnextnode.toml if it exists — extract project.name, project.typeDerive a skill identifier (kebab-case) from the package name:
@nextnode-solutions/dagger-pipeline → dagger-pipeline@nextnode-solutions/standards → standardsmy-tool → my-toolStrip the scope (@nextnode-solutions/, @scope/) to get the base name.
/learn <skill-name>If the user provides a skill name as argument, use that directly as the target skill.
/learn~/.claude/skills/*/SKILL.md to list all existing skillsstandards → ~/.claude/skills/standards/dagger-pipeline → ~/.claude/skills/dagger/ (if dagger is the only prefix match)eslint-config-nextnode → could match standards if ambiguousPerform a deep read of the package source code. Adapt the analysis to the package type:
package.json exports/main fields, then read the entry files to extract all public exports (functions, classes, types, constants)src/**/*.ts (or src/**/*.tsx) to understand the module layoutREADME.md, examples/, tests/ for usage patternspackage.json dependencies and peerDependencies to understand the ecosystemscripts in package.jsondagger.json for module metadata@object() classes and their @func() methodsAdapt the analysis: read config files, entry points, and core source files.
If updating an existing skill:
SKILL.md contentPresent a concise summary to the user:
Package: @nextnode-solutions/standards (v2.1.0)
Skill: ~/.claude/skills/standards/SKILL.md
Changes detected:
+ New: `createConfig()` helper, `RuleSet` type, flat config support
~ Changed: `defineConfig` now accepts an array, ESLint 9 flat config format
- Removed: `legacyExtends` option (deprecated in v2.0)
= Unchanged: 12 items still accurate
Ask the user via AskUserQuestion:
Generate a complete SKILL.md following this template:
---
name: <skill-identifier>
description: <package-description>. Use when working with <package-name>.
user-invocable: false
---
# <Package Name> Standards
## Overview
<Brief description of what the package does and when to use it.>
## Installation & Setup
<How to install and configure, extracted from README or package.json.>
## API Reference
<Public exports, function signatures, types — organized by module/concern.>
## Patterns & Best Practices
<Key patterns extracted from source code: how to use the APIs correctly.>
## Configuration
<Config schema, options, defaults — extracted from types/Zod schemas.>
## Common Pitfalls
<Anti-patterns or gotchas discovered from the source code.>
Adjust sections based on what the package actually provides — not every package needs every section. Keep it concise and actionable (this is a skill, not full API docs).
After updating the target skill, check if other skills reference it. This ensures that /learn on one package propagates changes everywhere.
Grep ~/.claude/skills/*/SKILL.md for references to the updated package name (e.g., @nextnode-solutions/standards, standards skill). Known dependency graph:
| Updated Skill | Dependents |
|---|---|
standards | nextnode-standards (audit checks reference standards for config patterns, required deps, scripts) |
logger | nextnode-standards (optional package recommendation) |
email-manager | nextnode-standards (optional package recommendation) |
nextnode | nextnode-standards (references nextnode for toml config, CI templates) |
nextnode-infra | nextnode (cross-references infra for CLI/deployment details) |
For each dependent skill:
SKILL.mdIf stale references are found:
Cascade updates:
→ nextnode-standards: updated required peer deps list (oxlint → oxlint + oxfmt)
→ nextnode: no stale references found (already references standards skill)
If no cascade updates are needed, report:
Cascade check: no dependent skills need updating.
After applying changes (including cascade):
autoload-dirs or matched by name/learn again after the next significant package updatepackage.json has a version, note it in the skill so future runs can detect version bumps.nextnode-standards) should reference it, not copy it.