tag-resources-for-cost-and-ownership
Use when cloud spend or on-call ownership cannot be attributed. Enforces a tag schema at the provider and policy layer so every resource names its owner, env, and cost centre.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- tag-resources-for-cost-and-ownership
- description
- Use when cloud spend or on-call ownership cannot be attributed. Enforces a tag schema at the provider and policy layer so every resource names its owner, env, and cost centre.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md362 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Tag resources for cost and ownership
Untagged resources are unowned: nobody knows who pays for them or who to wake when they break. Enforce tags in code and at the policy layer, not by convention.
Procedure
- Define the minimum schema once and apply it to every taggable resource:
env,owner(team handle),cost_center,managed_by = "terraform",repo. - Set it centrally with
default_tags(AWS) or an org policy so a resource that omits tags still inherits them: provider "aws" { default_tags { tags = local.common_tags } } - Reject untagged resources at plan time with a policy tool (Conftest/OPA or Checkov). A tag that is only recommended is a tag that goes missing.
- Backfill existing resources: tag in code, apply, then confirm the cloud side with a Cost Explorer group-by-tag report.
- In AWS activate the cost-allocation tag keys in the Billing console (
owner,cost_center); tags not activated do not appear in Cost Explorer. - Make
ownerresolve to a real escalation path: a team, not a departed individual. Rotate on reorg. - For resources that cannot be tagged (some data-transfer line items), attribute by account or project boundary instead.
- Alert on untagged spend: query the billing API grouped by tag and flag a growing "no tag" bucket.
Pitfalls
-
Tags set in
default_tagsoverridden by a resource's owntags = {}, which replaces rather than merges in some providers. -
owner = "jay"on an account that outlives Jay's tenure. -
Cost-allocation tags defined in code but never activated in Billing, so the report is empty.
-
Tagging EC2 and forgetting the load balancers, NAT gateways, and EBS volumes that dominate the bill.
-
A tag policy scoped to new resources only, leaving a decade of untagged spend in the "no tag" bucket.
-
Enforcing the tag policy in one account while the org has several, so resources in the others stay untagged.
-
Renaming a tag key mid-year (
cost_centertocost_centre), splitting attribution across two keys.
Verification
aws resourcegroupstaggingapi get-resources --tag-filters Key=owner,Values='' | jq '.ResourceTagMappingList | length'
aws ce get-cost-and-usage --group-by Type=TAG,Key=owner --metrics UnblendedCost \
--time-period Start=2026-09-01,End=2026-10-01
Report: the tag schema, the policy enforcement point, and the share of spend now attributed to a tag.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.