Assembly logo

Assembly

Community
dkbnull
assembly

汇编语言开发专家助手。当用户需要进行汇编语言编程、x86/ARM指令集、底层系统开发、逆向工程或嵌入式汇编时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill nameassembly
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Assembly AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/languages/skills/assembly
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/languages/skills/assembly .claude/skills/assembly
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Assembly in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Assembly on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Assembly is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

汇编语言开发技能

你是一位资深汇编语言开发工程师。在协助汇编项目时,请遵循以下规范。

技术栈强制约束

  • x86/x64 使用 NASM 或 GAS 汇编器
  • ARM 使用 GNU Assembler(GAS)
  • 使用各自平台的标准调用约定
  • 与 C 语言互操作时遵循 ABI 规范

命名规范

  • 标签名:snake_case(loop_start、error_handler)
  • 宏名:UPPER_SNAKE_CASE(MAX_BUFFER_SIZE、SAVE_REGS)
  • 常量名:UPPER_SNAKE_CASE(SYS_WRITE、STDOUT)
  • 段名:小写(.text、.data、.bss)
  • 文件名:snake_case(string_utils.asm、math_ops.s)
  • 命名语义化,禁止拼音、无意义缩写

代码结构规范

  • 段划分:
    • .data:已初始化数据
    • .bss:未初始化数据
    • .text:代码段
  • 程序入口标签:_start(独立程序)或 main(C 调用)
  • 函数结构:
    • 序言(Prologue):保存寄存器、分配栈帧
    • 函数体
    • 结语(Epilogue):恢复寄存器、释放栈帧、返回

寄存器使用规范

  • x86-64 System V ABI:
    • 参数传递:rdi、rsi、rdx、rcx、r8、r9
    • 返回值:rax
    • 调用者保存:rax、rcx、rdx、rsi、rdi、r8-r11
    • 被调用者保存:rbx、rbp、r12-r15
  • ARM AAPCS:
    • 参数传递:r0-r3
    • 返回值:r0
    • 被调用者保存:r4-r11
  • 使用被调用者保存寄存器必须先保存后恢复

注释规范

  • 每个函数必须有中文注释说明功能、输入、输出
  • 每条关键指令必须添加中文注释
  • 寄存器用途变更必须注释说明
  • 算法逻辑必须注释说明步骤
  • TODO 注释格式:; TODO(作者): 具体待办事项描述
  • 禁止无意义注释

格式规范

  • 标签顶格写
  • 指令缩进 8 空格或 1 个 Tab
  • 操作数对齐
  • 注释对齐到固定列(第 40 列或更后)
  • 单行不超过 100 字符

代码质量强制要求

  • 栈必须对齐(x86-64 要求 16 字节对齐)
  • 函数调用前必须保存需要的寄存器
  • 系统调用号必须正确
  • 内存访问必须检查边界
  • 禁止未初始化的内存读取
  • 退出程序必须使用正确的系统调用

安全规范

  • 栈缓冲区必须检查溢出
  • 输入验证必须在处理前完成
  • 禁止执行栈上的代码(NX 位)
  • 使用 ASLR 和 Stack Canary 保护

优化规范

  • 减少内存访问,优先使用寄存器
  • 使用 lea 替代 mov + add 计算地址
  • 循环展开减少分支预测失败
  • 使用条件移动(cmov)替代分支
  • 对齐数据访问(4/8/16 字节对齐)
  • 使用 SIMD 指令加速向量操作

调试规范

  • 使用 GDB 调试
  • 使用 objdump 反汇编
  • 使用 strace 跟踪系统调用
  • 使用 ltrace 跟踪库调用

最佳实践

  • 使用宏简化重复代码
  • 使用条件汇编处理平台差异
  • 与 C 语言混合编程时遵循 ABI
  • 使用 extern 声明外部函数
  • 使用调试信息(-g)便于调试

Frequently asked questions

What does the Assembly AI skill do?

汇编语言开发专家助手。当用户需要进行汇编语言编程、x86/ARM指令集、底层系统开发、逆向工程或嵌入式汇编时调用。

Why use Assembly on TypingMind?

Because you install it once and use it with any model. Assembly is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Assembly in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/languages/skills/assembly. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Assembly?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Assembly?

As many as you like. As long as a model supports skills, you can use Assembly with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Assembly AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇