Aliyun Tag Inference logo

Aliyun Tag Inference

Community
yzstory
aliyun-tag-inference

标签智能推断引擎 — 基于启发式规则和拓扑分析推断标签归属。触发词:智能推断标签、自动识别标签、标签建议

Overview

Publisheryzstory
Repositorypomeloclaw
Skill namealiyun-tag-inference
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 Inference 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-inference
  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-inference .claude/skills/aliyun-tag-inference
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aliyun Tag Inference 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 Inference 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 Inference 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-inference — 标签智能推断引擎

标签智能推断引擎技能,基于启发式规则和拓扑分析推断标签归属。通过正则模式匹配、VPC 拓扑继承、创建者信息等方式智能推断资源应该具有的标签。

核心能力

  1. 名称模式推断 — 根据资源名称正则匹配推断 env 标签
  2. VPC 拓扑推断 — 根据 VPC 归属关系推断 team 标签
  3. 创建者推断 — 根据资源创建者推断 owner 标签
  4. 批量推断 — 对给定资源执行所有适用的推断方法
  5. 推断审核 — 人工审核推断结果后应用

推断方法和置信度

推断方法标签键置信度范围说明
名称模式匹配env0.8-0.9`prod
VPC 自身标签继承team0.9VPC 有 team 标签,子资源继承
VPC 安全组关联team0.75通过安全组间接推断
创建者映射owner0.8创建者用户名映射

功能列表

操作工具函数风险等级说明
名称推断 envtagi_infer_env_from_nameLOW正则模式矩阵推断 env 标签
VPC 推断 teamtagi_infer_team_from_vpcLOWVPC 拓扑推断 team 标签
创建者推断 ownertagi_infer_owner_from_creatorLOW创建者映射推断 owner 标签
批量推断tagi_batch_inferLOW对给定资源执行所有推断方法
查询推断tagi_review_inferencesLOW查询待审核推断列表
应用推断tagi_apply_inferencesMEDIUM确认或拒绝推断结果

典型使用流程

1. 执行智能推断

→ tagi_infer_env_from_name(
    resource_types=["ACS::ECS::Instance"],
    regions=["cn-hangzhou"]
  )
  根据名称模式推断 env 标签

→ tagi_infer_team_from_vpc(
    vpc_ids=["vpc-xxx", "vpc-yyy"],
    region="cn-hangzhou"
  )
  根据 VPC 拓扑推断 team 标签

2. 审核推断结果

→ tagi_review_inferences(min_confidence=0.8, status="pending")
  查询高置信度的待审核推断

→ tagi_apply_inferences(
    inference_ids=["inf-xxx", "inf-yyy"],
    action="approve"
  )
  确认并应用推断结果

3. 批量推断

→ tagi_batch_infer(
    resource_arns=["arn:acs:ecs:..."],
    tag_keys=["env", "team", "owner"]
  )
  对指定资源执行所有适用的推断方法

推断结果数据模型

json
{
  "inference_id": "inf-xxx",
  "resource_arn": "arn:acs:ecs:cn-hangzhou:123456:instance/i-xxx",
  "resource_name": "prod-web-server-01",
  "inferred_tags": {
    "env": "prod"
  },
  "confidence": 0.9,
  "method": "name_pattern_match",
  "evidence": "名称匹配模式: prod|production|prd",
  "status": "pending",
  "created_at": "2024-01-01T00:00:00"
}

持久化文件

推断结果存储:~/.copaw/data/tag_inferences.json

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 Inference AI skill do?

标签智能推断引擎 — 基于启发式规则和拓扑分析推断标签归属。触发词:智能推断标签、自动识别标签、标签建议

Why use Aliyun Tag Inference on TypingMind?

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

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 Inference?

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

Is the Aliyun Tag Inference 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 👇