Skip to content
Agentmart
Submit a tool

galactic-engineering

Applies Galactic engineering rules for work in the galactic-ide repository.

Skill by idolaman

IndexedAGPL-3.0★ 230
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/idolaman-galactic-engineering

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Applies Galactic engineering rules for work in the galactic-ide repository. Use when implementing, reviewing, or refactoring repo code and you need the canonical standards for testing, versioning, React/Tailwind conventions, toasts, storage, OS-aware logic, and git-service boundaries.

Use cases: frontend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/galactic-engineering

Tools it pre-approves 5

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Grep,
  • Glob,
  • Write,
  • Edit

What's inside

Skill name
galactic-engineering
Description
Applies Galactic engineering rules for work in the galactic-ide repository. Use when implementing, reviewing, or refactoring repo code and you need the canonical standards for testing, versioning, React/Tailwind conventions, toasts, storage, OS-aware logic, and git-service boundaries.
License
AGPL-3.0
Allowed tools
Read,, Grep,, Glob,, Write,, Edit
Instructions
252 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Galactic Engineering

Apply these conventions when working on code in the `galactic-ide` repository.

- Apply the testing and versioning rules to all feature work.
- Apply the React/TypeScript/Tailwind rules when editing renderer code in `src/`.

---

## Repository-Wide Testing Requirement (GLOBAL)

- For every new feature or changed feature, add or update unit tests that verify expected behavior.
- Include at least one edge case or failure-path test for changed behavior.
- A feature is not complete until the relevant unit tests are passing locally.
- Exception: pure documentation/content updates with no runtime behavior change do not require tests.

---

## Repository-Wide Analytics Requirement (GLOBAL)

- For every new user-facing feature or meaningful workflow change, add or update product analytics that answer adoption, usage, success, and failure questions for that feature.
- Keep analytics privacy-safe and low-cardinality: never capture secrets, filesystem paths, terminal input/output, raw commands, raw errors, tokens, or user-authored content.
- Prefer typed analytics event names and small wrapper helpers that mirror existing Galactic patterns; add tests for new analytics wrappers and payload-shaping helpers.
- If PostHog dashboards or insights are requested, create them only after the relevant events exist in the PostHog schema; do not create empty placeholder dashboards.

---

## Repository-Wide Versioning Requirement (GLOBAL)

- For a given feature branch, bump the app version only once for the same feature.
- Do not repeatedly increment version for follow-up commits that are part of the same feature branch scope.

---

## File Structure Rules

NEVER:
- Create `index.ts` or `index.tsx` files
- Use deep relative imports (`../../../components/...`)
- Mix logic, UI, and styling in the same file

ALWAYS:
- Import directly into component files
- Use path aliases (`@/`, `@components/`, `@pages/`, `@styles/`)
- Structure each component with `.tsx` plus colocated hooks/utilities only
- Follow the Single Responsibility Principle (SRP)

---

## File Size Rules

HARD LIMIT:
- No file should exceed ~140 lines of code
- Applies to both new and existing files; if your edits would push a file past ~140 lines, split it before finishing.

If a file approaches 140 lines, you MUST:
- Split logic into custom hooks or utilities
- Break UI into smaller sub-components
- Separate responsibilities strictly by SRP

A file larger than 140 lines is considered an architectural smell.

---

## Styling Rules (CRITICAL)

- Use Tailwind utilities and shadcn variants for all visual styling; avoid inline `style` except for CSS variables.
- Prefer `gap` for spacing between siblings; avoid `margin` for layout. Use padding only for container interior spacing.
- Avoid arbitrary pixel values. Stick to the Tailwind scale (rem-based). If a token is missing, request it rather than hard-coding.
- Keep styling inside `className` via `cn(...)`; do not use template string concatenation.
- Add custom CSS only when Tailwind/shadcn cannot express a requirement; use design tokens and CSS variables when doing so.

### Shadcn UI Components

- Prefer components from `@/components/ui` over raw HTML when available.
- Use provided `variant`, `size`, and `asChild` props instead of ad-hoc classes.
- Keep layout simple: flex/grid with Tailwind `gap`, `items`, `justify`, `rounded`, `shadow`, etc.

### Tooltips (CRITICAL)

- ONLY use shadcn Tooltip:

```tsx
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";

<TooltipProvider>
  <Tooltip>
    <TooltipTrigger asChild>
      <Button size="icon" variant="ghost">?</Button>
    </TooltipTrigger>
    <TooltipContent side="top">Helpful text</TooltipContent>
  </Tooltip>
</TooltipProvider>
```

### Icons

- Use `lucide-react` only; no custom SVGs.
- Size icons with Tailwind classes (`className="h-4 w-4"`). No inline `width`/`height`.

### Toasts (CRITICAL)

- ALWAYS use `useAppToast` from `@/hooks/use-app-toast` in feature code.
- NEVER import `sonner`, `@/hooks/use-toast`, or `@/components/ui/use-toast` directly outside toast infrastructure files.
- Use `error(...)` for standard failures; shared error toasts auto-dismiss after 5 seconds unless an explicit override is required.
- Use `info(...)` for non-error informational messages and `success(...)` for standard completion messages.
- Use `loading(...)` for long-running async flows; update the same toast during progress and finish it with `success(...)`, `error(...)`, `info(...)`, or `dismiss()`.
- Only use persistent toasts when product behavior requires it, and set `duration: Infinity` explicitly.

---

## TypeScript Rules

- Define an `interface` for all component props; use `type` for unions/utility shapes.
- Export interfaces when used elsewhere.
- Avoid `switch` statements for mapping; prefer object maps:

```tsx
const statusLabels: Record<Status, string> = { loading: "Loading...", success: "Done!", error: "Failed" };

From idolaman/galactic, AGPL-3.0.

Signals

Stars
230
Forks
14
Open issues
0
Last commit (this folder)
May 21, 2026 (5 months ago)
Last release
May 30, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from idolaman

Cite this page

galactic-engineering skill. Agent Mart. https://agentmart.dev/skills/idolaman-galactic-engineering (last updated 2026-10-24)