Ss14 skill authoring

From space-sunrise/fish-station · View interactive version

Ss14 skill authoring is an AI agent skill from the GitHub repository space-sunrise/fish-station. Creating and updating skills for sunrise-station/SS14: decomposing the topic into several narrow skills, researching fresh code and docs, forming patterns/anti-patterns, writing high-quality SKILL.md with examples and quality checks. Use it when you need to write a new skill, rework an existing skil

How to use this skill

Skill file

SS14 Skill Authoring

Use this skill as a meta-playbook for writing other skills ✍️

Goal: to produce skills that really help the agent in the complex architecture of SS14, and do not restate the obvious.

Quick results

Collect at the exit:

  1. New or updated skill in a separate folder.
  2. SKILL.md with a clear frontmatter and working workflow.
  3. Patterns, anti-patterns and examples with comments.
  4. A short quality self-check before completion.

Mandatory meta rules

  1. Before starting any task (analysis, coding, refactoring, review), first look through the available skills and activate the relevant ones.
  2. Consider the requirements of activated skills as mandatory implementation restrictions.
  3. If inaccurate or outdated information is found in a skill, correct it immediately during your current work.
  4. After such a correction, clearly inform the user that this is normal expected behavior and that the maintainers specifically configured the agent to update skills “in place” so that the changes are not deleted by mistake :)

Workflow

1) Fix the task and boundaries

  1. Define the topic of the skill in one phrase.
  2. Determine the type of work: a new skill or a modification of an existing one.
  3. Record which questions the skill should cover and which ones it should not.
  4. Immediately exclude related large topics: put them in separate skills.

2) Break the topic down into skills (if the topic is broad)

Use the decomposition rule:

  1. *-core: architecture, life cycle, invariants, system boundaries.
  2. *-api: application APIs, use cases, application recipes.
  3. Separate skills for independent subsystems, if they have their own lifecycle and their own set of errors.

Mini decision tree:

  1. If a section can be learned and applied independently, it is a separate skill.
  2. If the section is needed only as a reference to the main thread, leave it in references/.
  3. If a section duplicates an existing skill, update the existing skill instead of the copy.

3) Collect sources and apply a freshness filter

Procedure:

  1. Consider the code as the ground truth.
  2. Read docs as a secondary layer for terms, intent and diagnostics.
  3. Check the freshness using the history of changes.
  4. Do not use code older than two years as a reference if there is a more recent implementation.
  5. Do not take as a reference fragments with TODO/hack/wip comments on the topic.

Use internal priority of sources when researching, but do not publish it as an explicit list in the final skill.

4) Create a fact map

For each fact, record:

  1. What does the mechanism do?
  2. In what context is this critical?
  3. What conditions/flags change the behavior.
  4. Why is this important for feature authoring and debugging.

Include in the skill only facts that:

  1. Models without a project are not obvious.
  2. Repeated in real problems.
  3. They give a verifiable gain in the quality of solutions.

5) Write SKILL.md in the required structure

Keep SKILL.md compact and practical :)

Required blocks:

  1. Heading and short objective skill.
  2. Reading order of resources (if there is references/).
  3. Source of truth and boundaries of trust.
  4. Mental model of the topic.
  5. Patterns.
  6. Anti-patterns.
  7. Examples with comments.
  8. Extension/change rule.

6) Respect style and restrictions

Text requirements:

  1. Write in Russian.
  2. Use a moderate number of emoticons (not in every paragraph).
  3. Give specifics, not general advice.
  4. Write in imperative/infinitive style.

Restrictions:

  1. Do not refer to absolute or hard-coded paths to code in the rules.
  2. Describe the behavior of the system through attributes and context, and not through “see file X.”
  3. Do not mix materials from another independent topic in one skill.
  4. Do not duplicate data already living in a specialized skill.

7) Close quality before publishing

Check:

  1. description in frontmatter explicitly explains when the skill should be triggered.
  2. There are no outdated or controversial unmarked passages in the text.
  3. There are at least 5 patterns and 5 anti-patterns.
  4. There are at least 3 practical examples with explanatory comments.
  5. There is a rule for further expansion without breaking the existing structure.

Patterns for writing skills ✅

  1. Start with an architectural model, then move on to APIs and cases.
  2. Link advice to execution conditions (prediction, substeps, server/client, lifecycle).
  3. Add short checklists before PR and before running tests.
  4. Show not only “how to do”, but also “how not to do”.
  5. Highlight risky areas: nondeterminism, order of events, expensive in hot-loop.
  6. Formulate rules so that they can be applied without a specific file path.
  7. Note docs limitations and always check against current code.

Anti-patterns when writing skills ❌

  1. Write a review without a procedural workflow.
  2. List APIs without explaining when and why to use them.
  3. Copy the controversial or TODO-heavy code as a standard.
  4. Create a giant-skill that tries to cover the entire project at once.
  5. Write abstract “best practices” without reference to the real behavior of the system.
  6. Rely only on docs and ignore discrepancies with the code.
  7. Overload the skill with a long theory, which is better put in references/.

Examples of templates and fragments

Example 1: frontmatter for a valid trigger

---
name: ss14-example-system-core
description: Deep analysis of the architecture and lifecycle of ExampleSystem in SS14: event ordering, critical invariants, server/client/shared interaction, and safe extension patterns. Use it when you need to understand the system before changes, debug regressions, or design new functionality.
---

Comment: description should answer two questions at the same time: “what does the skill do” and “when to use it”.

Example 2: correct pattern/anti-pattern block

## Patterns
1. Lock down dependency initialization order before registering handlers.
2. Add early returns for execution modes so prediction does not break.

## Anti-patterns
1. Register handlers after the point where ordering has already been fixed.
2. Ignore prediction mode and mix server/client branches without gating.

Comment: formulate points in the form of verifiable actions, not slogans.

Example 3: How to add a code snippet to a skill

public override void Initialize()
{
    // Fix the order before basic initialization, otherwise the order of calls may become incorrect.
    UpdatesBefore.Add(typeof(TileFrictionController));
    base.Initialize();
}

Comment: The code example should show a specific invariant and be accompanied by an explanation of "why it is important."

Example 4: How to rewrite a bad path binding

Badly:

Look at the implementation in SomeProject/Subsystem/FooSystem.cs and copy it from there.

Fine:

Look at the before-solve handler in movement systems: it does an early return for prediction and
works only with active/awake bodies to avoid extra load and desync.

Comment: Describe the observed behavior and conditions of application so that the rule can be transferred between repositories.

Pre-completion self-test template

  1. The topic “skill” is narrow and does not duplicate existing skills.
  2. Frontmatter is correct: only name and description.
  3. description contains explicit usage triggers.
  4. The text contains an architectural model, patterns, anti-patterns and examples.
  5. Examples are taken from current system behavior, and not from outdated fragments.
  6. There are no direct references to hard code paths.
  7. Text in Russian, working tone, moderate emoticons 🙂

Skills update rule

  1. When changing an existing skill, first save its structure and intent.
  2. Update only outdated blocks and add new facts point by point.
  3. If a new big topic appears, move it to a separate skill instead of blowing up the current one.
  4. After the update, run a self-test and make sure that the trigger in description is still accurate.

Think of skill as a working tool for the next agent: less noise, more testable solutions 🚀

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.