ข้ามไปยังเนื้อหา
AggregaAggregaAggregaAggrega
เลือกภาษา: ไทย
หน้านี้ถูกแปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

aggrega skills

ติดตั้ง skill Aggrega ลงในผู้ช่วย AI

รูปแบบคำสั่ง

aggrega skills

คำอธิบาย

Install the skill that teaches an AI assistant to install and use Aggrega.
A skill is a folder holding a SKILL.md file in the open Agent Skills format,
which many assistants read from a skill folder of their own. The Aggrega skill
tells an assistant how to install Aggrega, how to connect it to the aggrega MCP
server, how to start a workspace, and how to run the authoring loop — draft,
validate, build. It carries no copy of any schema: it sends the assistant to
this binary for every structural question and to the published documentation
for every conceptual one.
The skill is built into this binary, so the copy it installs matches the
version you have.

คำสั่งย่อย

คำสั่งคำอธิบาย
aggrega skills installเขียน skill ของ Aggrega ลงในโฟลเดอร์ skill ของผู้ช่วย AI
aggrega skills listแสดงรายการ skill ที่ไบนารีนี้มาพร้อมและผู้ช่วยที่ติดตั้งให้ได้

คำอธิบายของ aggrega skills install

Write the Aggrega skill into the skill folder of each assistant named with
--agent, so the assistant knows how to install and use Aggrega.
By default the skill goes into the assistant's project skill folder at the root
of your workspace — the one found from the directory you run the command in, or
named with --workspace-root; a directory no workspace marks is its own root —
which is where a project's own skills are committed. With --global it goes
into the assistant's per-user skill folder in your home directory instead,
where the assistant reads it in every project.
Every folder and file a project installation writes is held to the workspace:
a skill folder reached through a link leading out of it is refused, and
nothing is written.
--agent may be given more than once. Where several of the named assistants read
the same folder, the skill is written there once.
With --global and no --agent, the skill is installed for the assistants found
on this machine: each one whose configuration folder is in your home directory
or whose command is on your PATH, as the table below names them. The command
prints each assistant it found and what found it. At a terminal it then asks
before writing: press Enter to install for those, or type the identifiers of
other assistants to add them. Where standard input is not a terminal it
installs for the assistants found without asking. Where it finds none and is
given none, it writes nothing and says so. A project installation is for the
assistants a project's people use rather than those on one machine, so it
always names them with --agent.
The skill is written as a folder named aggrega holding SKILL.md, and every file
written carries a comment line saying where it comes from. Running the command
again replaces a copy carrying that line, which is how a newer aggrega brings
the skill up to its own version. A file at the target that does not carry it
was not written by this command, so the command refuses, names the file and
writes nothing; move it aside or remove it, then run the command again. Every
target is checked before anything is written, so a refusal leaves every folder
as it was.
The assistants it installs for, the folders each one reads, and what finds each
on this machine — its configuration folder in your home directory, or its
command on your PATH:
--agent assistant project folder per-user folder found by
amp Amp .agents/skills ~/.config/amp/skills ~/.config/amp, amp
antigravity Antigravity .agents/skills ~/.gemini/config/skills ~/.gemini/antigravity, antigravity
antigravity-cli Antigravity CLI .agents/skills ~/.gemini/antigravity-cli/skills ~/.gemini/antigravity-cli
claude-code Claude Code .claude/skills ~/.claude/skills ~/.claude, claude
cline Cline .cline/skills ~/.cline/skills ~/.cline, cline
codex Codex .agents/skills ~/.agents/skills ~/.codex, codex
cursor Cursor .cursor/skills ~/.cursor/skills ~/.cursor, cursor
gemini-cli Gemini CLI .gemini/skills ~/.gemini/skills gemini
github-copilot GitHub Copilot .github/skills ~/.copilot/skills ~/.copilot, copilot
goose Goose .agents/skills ~/.agents/skills ~/.config/goose, goose
opencode OpenCode .opencode/skills ~/.config/opencode/skills ~/.config/opencode, opencode
windsurf Windsurf .devin/skills ~/.codeium/windsurf/skills ~/.codeium/windsurf, windsurf
zed Zed .agents/skills ~/.agents/skills ~/.config/zed, zed
An assistant that is not listed is refused by name. It can still use Aggrega
through its MCP server: connect it to "aggrega mcp" as
https://aggrega.ai/docs/install/ describes.

แฟล็กของ aggrega skills install

แฟล็กค่าเริ่มต้นคำอธิบาย
--agent[]ผู้ช่วยที่จะติดตั้ง skill ให้ ระบุด้วยตัวระบุ (เช่น claude-code, codex, cursor หรือ gemini-cli) ใช้ซ้ำได้ ข้อมูลช่วยเหลือแสดงตัวระบุทุกตัวและโฟลเดอร์ที่แต่ละตัวเขียน จำเป็นเมื่อไม่มี —global เมื่อมี —global และไม่ระบุตัวใด skill จะถูกติดตั้งให้ผู้ช่วยที่พบบนเครื่องนี้
--globalfalseติดตั้งลงในโฟลเดอร์ skill รายผู้ใช้ของผู้ช่วยแต่ละตัวในไดเรกทอรีโฮมของคุณ ซึ่งผู้ช่วยอ่านในทุกโปรเจกต์ แทนที่จะติดตั้งในโฟลเดอร์ skill ของโปรเจกต์ที่รากของพื้นที่ทำงาน

คำอธิบายของ aggrega skills list

List the skills built into this binary, and the assistants "aggrega skills
install" can write them for, with the project folder and the per-user folder
each assistant reads skills from. It writes nothing.

สิ่งที่คำสั่งนี้ทำ

aggrega skills install เขียน skill ของ Aggrega ลงในโฟลเดอร์ skill ของผู้ช่วย AI แต่ละตัวที่คุณระบุด้วย --agent หรือเมื่อใช้ --global โดยไม่มี --agent ก็เขียนให้ผู้ช่วยแต่ละตัวที่พบบนเครื่องนี้ skill คือโฟลเดอร์ที่มีไฟล์ SKILL.md ในรูปแบบ Agent Skills แบบเปิด คือบล็อก frontmatter สั้นๆ ที่ระบุชื่อ skill และบอกว่าใช้เมื่อใด ตามด้วยคำสั่งสอน ผู้ช่วยที่อ่าน skill จะโหลดเมื่อคำขอของคุณตรงกัน ผู้ช่วยจึงรู้วิธีติดตั้ง Aggrega วิธีเชื่อมต่อกับ aggrega mcp วิธีเริ่มพื้นที่ทำงาน และวิธีรันวงจรการเขียนที่อธิบายในการเขียนไฟล์ Aggrega

skill ไม่มีสำเนาของสคีมาหรือสัญญาของเอนทิตีใดเลย skill บอกให้ผู้ช่วยถามไบนารีสำหรับทุกคำตอบเชิงโครงสร้าง ได้แก่เครื่องมือ MCP เมื่อเชื่อมต่อเซิร์ฟเวอร์ และบรรทัดคำสั่ง aggrega ในกรณีอื่น และให้อ่านเอกสารประกอบที่เผยแพร่เพื่อดูว่าสิ่งต่างๆ มีความหมายว่าอย่างไร skill ถูกสร้างไว้ในไบนารี ดังนั้นสำเนาที่เขียนจึงตรงกับเวอร์ชันที่คุณติดตั้ง

Terminal window
aggrega skills install --agent claude-code
Installed the aggrega skill for Claude Code at /home/you/project/.claude/skills/aggrega

ตำแหน่งที่ skill ลงไป

เมื่อไม่มี --global skill ไปอยู่ในโฟลเดอร์ skill ของโปรเจกต์ของผู้ช่วยที่รากของพื้นที่ทำงานของคุณ ซึ่งเป็นที่ที่ผู้ช่วยมองหา skill ของโปรเจกต์และที่ที่คุณคอมมิต พื้นที่ทำงานคือพื้นที่ที่ทุกคำสั่งพบ ได้แก่พื้นที่ที่ --workspace-root ระบุ หรือที่พบจากไดเรกทอรีที่คุณรันคำสั่ง ดังนั้นการรันจากโฟลเดอร์ย่อยก็ยังติดตั้งที่ราก และไดเรกทอรีที่ไม่มีพื้นที่ทำงานใดทำเครื่องหมายไว้เป็นรากของตนเอง เมื่อมี --global skill ไปอยู่ในโฟลเดอร์ skill รายผู้ใช้ของผู้ช่วยในไดเรกทอรีโฮมของคุณ ซึ่งผู้ช่วยอ่านในทุกโปรเจกต์ ตารางในคำอธิบายด้านบนให้ทั้งสองโฟลเดอร์ของผู้ช่วยทุกตัว แต่ละโฟลเดอร์คือโฟลเดอร์ที่เอกสารประกอบของผู้ช่วยนั้นเองระบุ และ ~ แทนไดเรกทอรีโฮมของคุณ

ผู้ช่วยหลายตัวอ่านโฟลเดอร์ .agents/skills ที่ใช้ร่วมกัน การระบุมากกว่าหนึ่งตัวเขียน skill ที่นั่นครั้งเดียว และระบุชื่อทั้งหมดในบรรทัดเดียวที่รายงาน

Terminal window
aggrega skills install --agent codex --agent zed --global
Installed the aggrega skill for Codex and Zed at /home/you/.agents/skills/aggrega

ผู้ช่วยบนเครื่องนี้

เมื่อใช้ --global โดยไม่มี --agent คำสั่งติดตั้ง skill ให้ผู้ช่วยที่พบบนเครื่องนี้ ผู้ช่วยนับว่าพบเมื่อโฟลเดอร์การกำหนดค่าของตนอยู่ในไดเรกทอรีโฮมของคุณ หรือคำสั่งของตนอยู่ใน PATH คอลัมน์ found by ของตารางในคำอธิบายด้านบนระบุทั้งสองอย่างสำหรับผู้ช่วยทุกตัว โฟลเดอร์หรือคำสั่งถูกใช้เฉพาะเมื่อเป็นของผู้ช่วยตัวนั้นตัวเดียว ดังนั้นการพบมันจึงไม่เคยแทนผู้ช่วยอีกตัว โฟลเดอร์ .agents/skills ที่ใช้ร่วมกันไม่พบผู้ช่วยตัวใดเลย และ .gemini ซึ่ง Gemini CLI และ Antigravity เก็บไฟล์ไว้ทั้งคู่ ก็ไม่พบทั้งสองตัว Gemini CLI พบจากคำสั่ง gemini และผลิตภัณฑ์ Antigravity แต่ละตัวพบจากโฟลเดอร์ของตนเองใต้ .gemini ผู้ช่วยที่การกำหนดค่าอยู่ที่อื่นในระบบของคุณพบจากคำสั่งของตน หรือระบุด้วย --agent

คำสั่งพิมพ์ผู้ช่วยแต่ละตัวที่พบและสิ่งที่ทำให้พบ แล้วติดตั้ง:

Terminal window
aggrega skills install --global
Found Claude Code (claude-code), from the folder /home/you/.claude
Found Codex (codex), from the command /usr/local/bin/codex
Installed the aggrega skill for Claude Code at /home/you/.claude/skills/aggrega
Installed the aggrega skill for Codex at /home/you/.agents/skills/aggrega

ที่เทอร์มินัล คำสั่งถามก่อน หลังบรรทัดที่ระบุสิ่งที่พบ คำสั่งขอให้คุณยืนยัน กด Enter เพื่อติดตั้งให้ผู้ช่วยเหล่านั้น หรือพิมพ์ตัวระบุของผู้ช่วยตัวอื่น คั่นด้วยช่องว่างหรือเครื่องหมายจุลภาค เพื่อเพิ่ม เมื่อไม่พบตัวใดเลย คำสั่งถามหาตัวระบุแทน และคำตอบที่ว่างไม่เขียนสิ่งใดเลย เมื่ออินพุตมาตรฐานไม่ใช่เทอร์มินัล ได้แก่สคริปต์ ผู้ช่วยที่รันคำสั่งแทนคุณ หรือเครื่องมือของผู้ช่วยเองสำหรับสิ่งนั้น คำสั่งไม่ถามสิ่งใดและติดตั้งให้ผู้ช่วยที่พบ เมื่อไม่พบตัวใดและไม่มีตัวใดถูกระบุ คำสั่งไม่เขียนสิ่งใด แจ้งเช่นนั้น และออกด้วยค่าไม่เป็นศูนย์

การระบุ --agent ใดๆ ข้ามการค้นหา คำสั่งติดตั้งให้ผู้ช่วยที่คุณระบุและไม่ติดตั้งให้ตัวอื่น การติดตั้งระดับโปรเจกต์ที่ไม่มี --global ระบุผู้ช่วยเสมอ เพราะเป็นการติดตั้งสำหรับผู้ช่วยที่คนในโปรเจกต์ใช้ ซึ่งเครื่องนี้บอกไม่ได้

การติดตั้งซ้ำ และสิ่งที่คำสั่งปฏิเสธ

ทุกไฟล์ที่คำสั่งเขียนมีบรรทัดความคิดเห็นหนึ่งบรรทัดทันทีหลัง frontmatter บอกว่ามาจาก skill ที่สร้างไว้ในไบนารี aggrega และการติดตั้งซ้ำจะแทนที่ บรรทัดนั้นคือวิธีที่คำสั่งแยกสำเนาของตนจากสำเนาของคุณ:

  • สำเนาที่มีบรรทัดนั้นจะถูกแทนที่ การรันคำสั่งอีกครั้งหลังอัปเกรด Aggrega ทำให้ skill เป็นเวอร์ชันใหม่ และบรรทัดที่คำสั่งพิมพ์จะเป็น Replaced ไม่ใช่ Installed
  • ไฟล์ที่ไม่มีบรรทัดนั้นจะถูกปฏิเสธ SKILL.md ที่อยู่ที่เป้าหมายอยู่แล้วและคำสั่งไม่ได้เขียนเป็นของคุณ ดังนั้นคำสั่งจึงระบุเส้นทางของไฟล์ ไม่เขียนสิ่งใดเลยในทุกที่ และออกด้วยรหัสการออกที่ไม่ใช่ศูนย์ ย้ายไฟล์ไปไว้ที่อื่นหรือลบ แล้วรันคำสั่งอีกครั้ง หากต้องการเก็บการเปลี่ยนแปลงของคุณเอง เก็บไว้ใน skill ที่ใช้ชื่ออื่น
  • โฟลเดอร์ที่ไปถึงผ่านลิงก์ที่นำออกนอกพื้นที่ทำงานจะถูกปฏิเสธ เมื่อไม่มี --global ทุกโฟลเดอร์และไฟล์ที่คำสั่งจะเขียนถูกจำกัดอยู่ในพื้นที่ทำงาน เมื่อโฟลเดอร์ skill ของผู้ช่วยหรือโฟลเดอร์ระหว่างทางเป็นลิงก์ที่นำออกนอกพื้นที่ทำงาน คำสั่งระบุลิงก์และที่ที่ลิงก์นำไป ไม่เขียนสิ่งใดเลยในทุกที่ และออกด้วยรหัสการออกที่ไม่ใช่ศูนย์ ซึ่งเป็นเงื่อนไขที่อธิบายใน A path the operation writes leads through a link out of the directory it must stay inside (เส้นทางที่การดำเนินการเขียนนำผ่านลิงก์ออกนอกไดเรกทอรีที่ต้องอยู่ภายใน) ลิงก์ที่อยู่ในพื้นที่ทำงานเขียนผ่านได้

ทุกเป้าหมายถูกตรวจสอบก่อนที่จะมีสิ่งใดถูกเขียน ดังนั้นการปฏิเสธสำหรับผู้ช่วยหนึ่งตัวจึงทำให้โฟลเดอร์ของผู้ช่วยตัวอื่นทุกตัวคงอยู่ตามเดิมด้วย ไฟล์ในโฟลเดอร์ของ skill ที่ skill ไม่ได้เขียนจะไม่ถูกแตะต้อง

ผู้ช่วยที่คำสั่งไม่รู้จัก

--agent รับเฉพาะตัวระบุในตารางข้างต้น แต่ละตัวคือตัวระบุที่เครื่องมือบรรทัดคำสั่ง open skills ใช้สำหรับผู้ช่วยตัวเดียวกัน ตัวระบุอื่นใดถูกปฏิเสธโดยระบุชื่อ พร้อมรายการตัวที่รู้จัก ผู้ช่วยที่ไม่อยู่ในรายการยังใช้ Aggrega ได้ โดยเชื่อมต่อกับเซิร์ฟเวอร์ MCP ตามที่เชื่อมต่อเซิร์ฟเวอร์ MCPอธิบาย และจะเข้าถึงเครื่องมือและเอกสารอ้างอิงเดียวกันที่ skill ชี้ไป

ตัวอย่าง

ติดตั้ง skill สำหรับ Claude Code ในโปรเจกต์นี้:

Terminal window
aggrega skills install --agent claude-code

ติดตั้งสำหรับ Gemini CLI และ Cursor ในทุกโปรเจกต์ของคุณ:

Terminal window
aggrega skills install --agent gemini-cli --agent cursor --global

ติดตั้งในทุกโปรเจกต์ของคุณสำหรับผู้ช่วยบนเครื่องนี้:

Terminal window
aggrega skills install --global

ทำให้สำเนาที่ติดตั้งไว้ตรงกับไบนารีที่คุณเพิ่งอัปเกรด:

Terminal window
aggrega skills install --agent claude-code

การแสดงรายการสิ่งที่คำสั่งรู้จัก

aggrega skills list พิมพ์ skill ที่สร้างไว้ในไบนารีนี้พร้อมคำอธิบาย แล้วพิมพ์ผู้ช่วยทุกตัวที่ aggrega skills install รู้จัก พร้อมโฟลเดอร์ของโปรเจกต์และโฟลเดอร์รายผู้ใช้ คำสั่งไม่เขียนสิ่งใดเลย

Terminal window
aggrega skills list