Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

vibe-assembly

/vibe-assembly

Pisze funkcję bezpośrednio w asemblerze i weryfikuje ją względem wzorca oraz kompilatora optymalizującego w repozytorium vibeasm.

Repozytorium
vibe-assembly ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pisze funkcję bezpośrednio w asemblerze i weryfikuje ją względem wzorca oraz kompilatora optymalizującego w repozytorium vibeasm.

Wyzwalacze z opisu

the fastest possible
Oryginalny opis (EN)

Write a function directly in assembly instead of a high-level language, verified against a reference and benchmarked against the optimizing compiler, using this repository's `vibeasm` harness. Use when the user asks for assembly, for "the fastest possible" version of a hot function, to beat the compiler, or to add a task or solution to this repository.

Jak działa

  1. 1. Pin down the task (the part the human reviews)
  2. 2. Write the assembly
  3. 3. Have it accepted
  4. 4. Report honestly
  5. Rules for solutions (the lint enforces them)
Sekcje z nagłówków SKILL.md, w oryginale · 92 linii, 569 słów
Podgląd SKILL.md
---
name: vibe-assembly
description: Write a function directly in assembly instead of a high-level language, verified against a reference and benchmarked against the optimizing compiler, using this repository's `vibeasm` harness. Use when the user asks for assembly, for "the fastest possible" version of a hot function, to beat the compiler, or to add a task or solution to this repository.
---

# Writing assembly with the vibe-assembly harness

You are in the vibe-assembly repository. The harness (`bin/vibeasm`) assembles a
candidate, lints it, fuzzes it differentially against a reference implementation under
guard pages and an ABI-checking trampoline, and times it against `clang -O3`. Your job
is to write the assembly; the harness's job is to not believe you. Never report a
result the harness did not print.

Run `bin/vibeasm doctor` first. If the target is unsupported, say so and stop: assembly
is verified by running it.

## 1. Pin down the task (the part the human reviews)

If the user wants a new function, create a task. A task is a contract plus an oracle:

```
bin/vibeasm new <name> --shape bytes_to_u64      # or bytes_to_bytes, or ints_to_u64 --args a,b
```

Then fill in `tasks/<name>/`:

- `SPEC.md`: the contract in prose. Every edge case stated: empty input, largest
  input, bytes >= 0x80, overflow, what exactly is returned.
- `ref.c`: the reference implementation. Plain, boring, obviously correct C. If the
  user's function is in another language, translate it faithfully and show them.
- `gen.c`: input generators. Flavor 0 is the typical input (benchmarks use it). Add
  adversarial flavors: the inputs most likely to break a vectorized implementation
  (all-matches, no-matches, boundary byte values, almost-valid data with one defect).
- `task.json`: benchmark cases (include small sizes) and `goal_speedup`.

Show the user `SPEC.md` and `ref.c` and get their agreement before optimizing: nobody
will read the assembly, so these two files are the review.

Sanity-check the task itself: the compiler's own output must pass.

```
bin/vibeasm baseline <name> > /tmp/compiler.s && bin/vibeasm check <name> /tmp/compiler.s --full
```

## 2. Write the assembly

Either hand the task to a headless agent, which loops until verified:

```
bin/vibeasm run <name> --rounds 3
```

or do it yourself in a work directory:

```
bin/vibeasm work <name>          # prints the directory; cd there
```

In the work directory read `TASK.md` (the brief: rules, tools, judging) and `ABI.md`
(registers, syntax, traps) before writing code, then iterate:

```
vibeasm check                    # assemble + lint + thousands of differential tests (~1 s)
vibeasm bench a.s b.s            # time variants side by side against the compiler
vibeasm call --text 'input'      # one input through your code and the reference
vibeasm call --gen 16177 --flavor 4
vibeasm disasm --lines
```

Get a simple correct version passing first. Then optimize by measuring: one idea per
file, compare with `bench`, keep what the numbers favour. Keep notes in `NOTES.md`.

## 3. Have it accepted

```
bin/vibeasm accept <name> <path/to/solution.s> --by "claude-code interactive" --model <model>
```

This runs the long verification with fresh seeds, benchmarks, and installs the file
in `solutions/<target>/` with a provenance record. If it refuses, fix the bug it
reports; do not use `--force` to get around a failure.

## 4. Report honestly

Tell the user the measured speed-up per case from the harness's table, the number of
test cases it passed, and the limits: verified by differential fuzzing (strong
evidence, not proof), for this target only. If the assembly is not faster than the
compiler, say that plainly: it is a real and common result for code the compiler
already handles well.

## Rules for solutions (the lint enforces them)

One exported symbol; no external references; no writable data; no reads or writes
outside the buffers (not even inside a vector load); callee-saved registers, `sp` and
`x29` preserved; no `x18`, `svc`, system registers, or `.arch`/`.cpu` directives.

Wersje

W bazie nie ma innych skilli o nazwie vibe-assembly.

Migawka bazy z 13.11.2026 · wersja paczki 9a157a99fdee (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 86assembly
    Pomaga w programowaniu w asemblerze dla x86 i ARM, w systemach niskopoziomowych i w układach wbudowanych.
  • 100assembly-guide
    Dostarcza zasady i dobre praktyki dla projektów w asemblerze (x86, ARM): konwencje wywołań, użycie rejestrów i techniki debugowania zgodne ze standardami projektu.
  • 95lang-assembly
    Czyta i pisze asembler x86-64 i ARM64: konwencje wywołań, ramki stosu, wyjście kompilatora i małe ręcznie pisane procedury.
  • 100compiler-commit
    Weryfikuje zmiany kompilatora testami, lintem i formatowaniem, a następnie tworzy commit z odpowiednim prefiksem [compiler] lub [rust-compiler].
  • 100compiler-optimizations-deep
    Pomaga, gdy -O3 zostawia gorącą pętlę skalarną, w asemblerze widać spill rejestrów albo wdrożenie PGO lub BOLT jest planowane lub się zacina.
  • 100assembly
    Wspiera pracę z asemblerem x86-64 i ARM64: rejestry, konwencje wywołań, ramki stosu i inline asm, przy kodzie niskopoziomowym i optymalizacji gorących pętli.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.