Aliyun Tag Automation logo

Aliyun Tag Automation

Community
yzstory
aliyun-tag-automation

标签自动化规则引擎 — 基于确定性规则自动推断和传播标签。触发词:标签自动化、自动打标、规则打标、标签传播

Overview

Publisheryzstory
Repositorypomeloclaw
Skill namealiyun-tag-automation
Stars
59
Forks
4
Bundled files
1
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.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Aliyun Tag Automation 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/yzstory/pomeloclaw/tree/main/workspace/skills/finops_skills/aliyun-tag-automation
  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/yzstory/pomeloclaw.git /tmp/pomeloclaw
mkdir -p .claude/skills
cp -r /tmp/pomeloclaw/workspace/skills/finops_skills/aliyun-tag-automation .claude/skills/aliyun-tag-automation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aliyun Tag Automation 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 Aliyun Tag Automation 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 Aliyun Tag Automation 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.

aliyun-tag-automation — 标签自动化规则引擎

标签自动化规则引擎技能,支持基于确定性规则自动推断和传播标签。通过预定义规则类型,实现标签的自动化治理。

核心能力

  1. 规则管理 — 创建、更新、删除自动化规则
  2. 多种规则类型 — 支持创建者映射、名称前缀推断、资源组映射、VPC 归属等
  3. 规则执行 — 支持 dry_run 预览和实际执行
  4. 执行历史 — 查询规则执行历史

支持的规则类型

规则类型说明配置示例
creator_to_team根据资源创建者映射到 team 标签{"creator_team_map": {"user1": "sre"}}
name_prefix_to_env根据资源名称前缀推断 env 标签{"prefix_env_map": {"dev-": "dev"}}
resource_group_mapping根据资源组映射标签{"rg_tag_map": {"rg-dev": {"env": "dev"}}}
vpc_to_team根据 VPC 归属推断 team 标签{"vpc_team_map": {"vpc-xxx": "sre"}}

功能列表

操作工具函数风险等级说明
列出规则taga_list_rulesLOW列出所有自动化规则
创建规则taga_create_ruleMEDIUM创建新的自动化规则
更新规则taga_update_ruleMEDIUM更新现有规则
删除规则taga_delete_ruleMEDIUM删除规则
执行规则taga_execute_rulesMEDIUM执行规则(支持 dry_run)
查询历史taga_execution_historyLOW查询规则执行历史

典型使用流程

1. 创建自动化规则

→ taga_create_rule(
    name="创建者到团队映射",
    rule_type="creator_to_team",
    config={"creator_team_map": {"alice": "sre", "bob": "data"}},
    scope={"resource_types": ["ACS::ECS::Instance"], "regions": ["cn-hangzhou"]}
  )

2. 预览执行效果

→ taga_execute_rules(rule_ids=["rule-xxx"], dry_run=True)
  预览规则匹配结果和标签建议

3. 执行规则

→ taga_execute_rules(rule_ids=["rule-xxx"], dry_run=False)
  实际执行规则,应用标签

4. 查询执行历史

→ taga_execution_history(rule_id="rule-xxx", limit=10)

规则配置文件

路径:~/.copaw/data/tag_automation_rules.json

json
{
  "rules": [
    {
      "rule_id": "rule-xxx",
      "name": "创建者到团队映射",
      "enabled": true,
      "rule_type": "creator_to_team",
      "priority": 1,
      "config": {
        "creator_team_map": {"alice": "sre", "bob": "data"}
      },
      "scope": {
        "resource_types": ["ACS::ECS::Instance"],
        "regions": ["cn-hangzhou"]
      },
      "alert_channels": [],
      "last_execution": null
    }
  ]
}

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Aliyun Tag Automation AI skill do?

标签自动化规则引擎 — 基于确定性规则自动推断和传播标签。触发词:标签自动化、自动打标、规则打标、标签传播

Why use Aliyun Tag Automation on TypingMind?

Because you install it once and use it with any model. Aliyun Tag Automation 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 Aliyun Tag Automation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yzstory/pomeloclaw/tree/main/workspace/skills/finops_skills/aliyun-tag-automation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Aliyun Tag Automation?

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 Aliyun Tag Automation?

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

Is the Aliyun Tag Automation AI skill free?

It is published on GitHub by yzstory. Check the repository for licensing terms. 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 👇