@ichintansoni/skills-master 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bin.js +15 -3
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import { Command } from "commander";
5
5
 
6
6
  // package.json
7
- var version = "0.1.17";
7
+ var version = "0.1.18";
8
8
 
9
9
  // src/schema/projectConfig.ts
10
10
  import { z } from "zod";
@@ -167,7 +167,8 @@ var claudeEmitter = {
167
167
  const note = stabilityNote(xm.stability, xm.snapshot_date);
168
168
  const fm = {
169
169
  name: skill.frontmatter.name,
170
- description: skill.frontmatter.description
170
+ description: skill.frontmatter.description,
171
+ ...skill.frontmatter.license ? { license: skill.frontmatter.license } : {}
171
172
  };
172
173
  const files = [
173
174
  {
@@ -564,6 +565,13 @@ var GlobsSchema = z4.union([z4.string(), z4.array(z4.string())]).transform((g) =
564
565
  var FrontmatterSchema = z4.looseObject({
565
566
  name: SkillNameSchema,
566
567
  description: z4.string().min(1, "description is required").max(1024, "description must be <= 1024 characters"),
568
+ /**
569
+ * Spec field, projected verbatim onto the Claude target. Authored per skill
570
+ * rather than stamped by the emitter: an emitter cannot know the license of
571
+ * whatever content root it was pointed at, and inventing one would be a
572
+ * false claim about someone else's work.
573
+ */
574
+ license: z4.string().min(1, "license must be a non-empty string").optional(),
567
575
  globs: GlobsSchema,
568
576
  tags: z4.array(z4.string()).default([]),
569
577
  "x-skills-master": XSkillsMasterSchema
@@ -1776,6 +1784,9 @@ function lintSkills(skillsRoot) {
1776
1784
  if (!/use when/i.test(fm.description)) {
1777
1785
  push("warn", `description should include a "Use when ..." trigger clause`);
1778
1786
  }
1787
+ if (fm.license == null) {
1788
+ push("warn", `no license \u2014 add a "license" field (this library uses MIT)`);
1789
+ }
1779
1790
  const tagAt = fm.description.search(XML_TAG_RE);
1780
1791
  if (tagAt !== -1) {
1781
1792
  const end = fm.description.indexOf(">", tagAt);
@@ -2072,7 +2083,8 @@ function template(domain, cls, category, name) {
2072
2083
  const today2 = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
2073
2084
  return `---
2074
2085
  name: ${name}
2075
- description: TODO \u2014 one-line, third person. Use when <triggers go here>.
2086
+ description: TODO \u2014 one-line, third person. Use when the triggers go here.
2087
+ license: MIT
2076
2088
  globs:
2077
2089
  - "**/*"
2078
2090
  tags: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichintansoni/skills-master",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Install tool-agnostic Apple & Android development skills into any AI coding tool (Claude Code, Cursor, Copilot, AGENTS.md).",
5
5
  "keywords": [
6
6
  "skills",