본문으로 건너뛰기
cccskills
무료GitHub에 공개

specialize

Author a new built-in Lagune specialization inside the Lagune source, not a project's own catalog. Use when adding or refining a security knowledge module that ships with Lagune, against the native layout (`catalog/*.md` plus the built-in index).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune스타 173(GitHub 173 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Authoring a built-in Lagune specialization (development workspace)

The published skill skills/lagune.specialize/SKILL.md writes into a project's own catalog: .lagune/catalog/<name>.md plus its entry in .lagune/configs.json. This repo is the Lagune source, where built-in specializations live in catalog/<name>.md and their index is a TypeScript array, not a runtime JSON file. A built-in is registered in code, published with the engine, and tested.

So you reuse the skill's authoring discipline (terrain, defense-only gate, template, tags, reconcile-never-append) but override every output path to the native layout, and you update the registration points the published skill never has to.

Step 1: Run the skill's authoring steps, with redirected paths

Read and follow skills/lagune.specialize/SKILL.md in full. Its authoring steps hold unchanged. The one thing that does not is where files are read and written, since the skill targets a project and you are in the source. Remap every path it names:

Skill path (a project's own catalog)Native path (use this instead)
catalog <name> for regex, javascript, browserevery *.md already in catalog/ (list the directory, mirror the closest one)
template.md, next to the skillskills/lagune.specialize/template.md
catalog (list what exists)read catalog/ and BUILTIN_SPECIALIZATIONS in src/catalog/builtin.ts
.lagune/catalog/<name>.md (the specialization file)catalog/<name>.md
.lagune/configs.json (index entry)a BuiltinSpecialization in src/catalog/builtin.ts

A hook reference inside the .md body uses the engine command, npx --yes lagune <hook>, with long flags only, because that body ships verbatim to the end user.

Step 2: Decide the category

Every built-in belongs to at least one category, which is how a project brings it into its catalog with npx lagune add --categories <category>. Categories live in CATEGORIES in src/categories/categories.ts.

  • A language specialization goes under its language key (python under python, and so on).
  • A specialization about an application-security risk OWASP tracks goes under owasp.
  • Match the specialization to the category that actually describes it. If none fits, that is a signal a new category may be needed, adding a Category to CATEGORIES (key, label, description) and its icon. Ask the user before inventing one, do not force an unrelated module into owasp to avoid the question.

A project's own index entry carries no categories, but the built-in index entry does. Set it.

Step 3: Write and register, then verify

A new built-in is not done when the .md exists. Touch each of these:

Required (a specialization is broken without these)

  1. Write the authored module to catalog/<name>.md (Step 1). The engine reads catalog/<name>.md by name, so the file resolves once it is on disk and indexed.
  2. Add the BuiltinSpecialization { name, tags, categories } to src/catalog/builtin.ts. Without this row, catalog never lists it and catalog <name> cannot resolve it.
  3. Add a Category to src/categories/categories.ts, but only when you introduced a new category.
  4. Add its label, description, icon, and prompt task to src/dashboard/shared/specialization-meta.ts, which the dashboard and the website share.

Tests (the suite asserts the index, the files, and the docs stay in sync)

  1. The catalog tests iterate BUILTIN_SPECIALIZATIONS (for example, no built-in repeats its name inside its own tags, every index row has a file and every file a row, every engine call carries the package version and long flags), so a new entry is exercised automatically. Update a hardcoded list only when your change alters it, such as the built-ins a category holds.
  2. Run the full suite: npm test. It runs scripts/build.sh first, so the engine the e2e tests exercise is rebuilt automatically. All green before you call it done.

Documentation (the built-in catalog is enumerated by hand in the website)

  1. Add a row to the table of built-ins in website/docs/catalog.mdx, giving the built-in its categories and focus. The sync test fails until the row matches the index.
  2. Update README.md only when it enumerates built-ins.

Not touched

  • .lagune/configs.json and .lagune/catalog/: these hold a project's own catalog. A built-in never writes there.

Quick checklist

[ ] catalog/<name>.md                        authored from skills/lagune.specialize/template.md (reconciled on a refine)
[ ] src/catalog/builtin.ts                   BuiltinSpecialization added { name, tags, categories }
[ ] src/categories/categories.ts             only if a new category was introduced
[ ] src/dashboard/shared/specialization-meta.ts  label, description, icon, prompt task
[ ] tests updated + npm test green
[ ] website/docs/catalog.mdx table row added

Summary to the user

As Step 8 of the skill: state the name, tags, categories, what it covers, and that the phases load it on demand once shipped (a prompt loads it directly with the engine's catalog <name>). Note that a project's own specialization of the same name shadows it. Suggest a commit such as feat: add specialization in `<name>` defense, matching the wording the existing built-ins use, as a suggestion, not a mandate.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Authoritative architecture reference for Lagune, covering repository layout, the three owners, the published skills, the catalog, the engine command and its fallback, and the tracking-map model. Use when a decision depends on repo shape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune1732026년 10월 26일 업데이트

cdp

무료

Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM. Use when a frontend change can only be confirmed once rendered, for layout, spacing, alignment, overflow, or theme tokens.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune1732026년 10월 26일 업데이트

dashboard

무료

Authoritative reference for the Lagune dashboard, a live view of a project's .lagune/ chain with a locked-down local action surface. Use before changing anything under src/dashboard/ or src/types/dashboard/.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune1732026년 10월 26일 업데이트

Authoritative engineering reference covering code conventions, comments, TypeScript type rules, testing, and commit messages. Use before writing or changing any source file, and when suggesting a commit message.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune1732026년 10월 26일 업데이트

lagune

무료

Do the work the prompt asks for, with security guarding the build as it happens. Loads the charter, matches the security knowledge the work touches, builds safe-by-default, then checks its own result against what it used.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune1732026년 10월 26일 업데이트

Establish or update the project's security charter, the safe-by-default principles every later phase must respect. Reads the project's files to learn what it is and uses, weighs any description you give against them, and asks when something is unclear.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

wellwelwel/lagune1732026년 10월 26일 업데이트

wellwelwel의 스킬 모두 보기

이 스킬의 문제 신고