akg-agents

Automate AKG kernelgen workflows with branch enforcement and environment setup.

2.5k|422|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill akg-agents-openjiuwen-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: akg-agents
Source: https://github.com/openJiuwen-ai/jiuwenswarm/tree/main/jiuwenswarm/resources/agent/workspace/skills/akg-agents
Command: npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill akg-agents-openjiuwen-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It resolves the burden of setting up and executing AKG operator/kernel generation and verification workflows by automating repository checkout, environment initialization, task extraction, and kernel code generation.

Core Features & Use Cases

  • AKG repo + branch enforcement: Clones and pins the AKG repository to the required branch before running generation.
  • Deterministic environment setup: Forces full setup when ~/.akg/check_env.md is absent and reads the required akg-env-setup skill before proceeding.
  • Task extraction + kernelgen backend generation: Uses the op-task-extractor to produce standard task files and then runs run_workflow.py --workflow kernelgen with the user-selected framework/backend/dsl/arch.
  • Guardrailed execution + reporting: Requires ~/.akg/settings.json, runs generation in the foreground, and reports failures truthfully to the user without silently switching methods.

Quick Start

Ask JiuwenSwarm to execute the AKG operator task workflow for your specified framework/backend/dsl/arch after you prepare ~/.akg/settings.json using the provided example.

Frequently Asked Questions about akg-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate AKG kernel code generation and task extraction?

To automate AKG kernel code generation, you must provide a mandatory `~/.akg/settings.json` file and run `run_workflow.py --workflow kernelgen` in the foreground. The workflow enforces the correct AKG repository branch, initializes the environment, extracts tasks, and executes the generation deterministically.

How does environment setup work for AKG operator workflow execution?

Environment setup for AKG operator workflow execution forces a full initialization when `~/.akg/check_env.md` is absent. The process reads the required `akg-env-setup` skill to bootstrap the environment before proceeding with any kernel generation or verification tasks.

What do I need to prepare before running the AKG kernelgen workflow?

Before running the AKG kernelgen workflow, you need to prepare a `~/.akg/settings.json` file specifying your selected framework, backend, dsl, and architecture. This settings file is mandatory for the workflow to execute correctly and generate the kernel code.

Can I run AKG kernel generation in the background?

No, AKG kernel generation must run in the foreground. The workflow requires explicit execution of `run_workflow.py --workflow kernelgen` to ensure deterministic orchestration and truthfully report any command failures without silently switching methods.

Why does my AKG workflow fail without settings.json?

Your AKG workflow fails without `settings.json` because it is a strict requirement located at `~/.akg/settings.json`. The workflow relies on this file to obtain user-selected framework, backend, dsl, and arch configurations required for task extraction and kernelgen code generation.

What is the process for AKG operator authoring and performance tuning?

AKG operator authoring and performance tuning involves cloning the AKG repository to a pinned branch, initializing the environment via `akg-env-setup`, extracting standard task files, and running the kernelgen workflow. This deterministic orchestration handles verification and backend implementation completion scenarios.