architecture-refinement

architecture-refinement is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 22 tokens per session (895 once invoked), scanned A, original, MIT.

A meta-skill for recording useful lessons and recurring patterns in an AI assistant's documentation. It covers recognizing architectural insights, consolidating knowledge, and updating migration records.

In plain words
What is it for?
Use it after solving recurring problems, changing skill files, creating documentation, or identifying a reusable workflow pattern.
Why use it?
It prevents solutions and workflow lessons from being forgotten after a session. It also keeps related documentation organized as the assistant evolves.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after solving recurring problems, changing skill files, creating documentation, or identifying a reusable workflow pattern.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/architecture-refinement
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fabioc-aloha/Alex_Skill_Mall --skill architecture-refinement
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architecture-refinement

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/architecture-refinement/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/architecture-refinement)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/architecture-refinement"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/architecture-refinement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for architecture-refinement

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/architecture-refinement"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/architecture-refinement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 895 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00895
Opus 5 $0.00011 $0.00447
Sonnet 5 $0.00004 $0.00179
Haiku 4.5 $0.00002 $0.00089

Measured 8d ago against content hash 49c75bb08d19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

architecture-refinement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/architecture-patterns/architecture-refinement/skills/architecture-refinement/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Architecture Refinement Skill

Meta-skill for maintaining and evolving the AI assistant's cognitive architecture through deliberate documentation and pattern extraction.

Purpose

This skill enables the AI assistant to:

  • Recognize when a learning session produces architecture-worthy insights
  • Document patterns in the appropriate .github/ location (skills, instructions, prompts)
  • Update migration trackers and status tables
  • Consolidate knowledge files following KISS/DRY principles

When to Apply

Trigger this skill when:

  • A session resolves a recurring problem (document the pattern)
  • A skill file is migrated or consolidated (update trackers)
  • A new workflow emerges (capture in appropriate .instructions.md)
  • User feedback reveals a principle ("don't over-simplify")

Core Patterns

Pattern Recognition Checklist

Before session ends, ask:

Question If Yes → Action
Did we solve a problem that could recur? Document in relevant skill file
Did we learn something about the AI assistant's architecture? Update relevant .github/ documentation
Did a file get created/deleted/consolidated? Update migration trackers
Did user correct AI behavior? Add to skill's Anti-Patterns + document principle
Did the skill itself get improved during use? Commit the refinement immediately

Documentation Location Guide

What You Learned Where to Document Audience
Technical skill pattern .github/skills/{name}/SKILL.md the AI assistant (AI)
Important concepts for user .github/skills/{name}/SKILL.md Human + AI
Process improvement .github/instructions/*.instructions.md the AI assistant (AI)
Complex workflow .github/prompts/*.prompt.md the AI assistant (AI)
Domain expertise .github/skills/{name}/SKILL.md the AI assistant (AI)

Key Distinction:

  • .github/skills/ = Operational reference during work (the AI assistant + user)

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 121 lines · 22 tokens per session scan A 49c75bb08d19

Subscribe to this mod's changes

architecture-refinement is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 895 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

apply-cross-functional-leadership

Use when a manager needs to lead a project or initiative that depends on team members or stakeholders they do not formally manage — to build voluntary cooperation, alignment, and momentum across organizational boundaries through influence rather than authority.

jeffreytse/grimoire-core · 49 tokens

build-psychological-safety

Use when a team leader wants to assess and improve the degree to which team members feel safe to speak up, admit mistakes, ask questions, and disagree — because psychological safety is the strongest predictor of team learning and high performance.

jeffreytse/grimoire-core · 52 tokens

run-performance-improvement-plan

Use when a direct report has a documented pattern of performance falling below role expectations — after informal feedback has not produced sustained change — to create a structured, time-bound plan with clear success criteria before making a continuation decision.

jeffreytse/grimoire-core · 49 tokens

run-underperformance-conversation

Use when a manager first observes that a direct report's performance is declining or falling below expectations — to have an early, direct, non-punitive conversation that names the gap and opens a path to correction before the situation requires formal process.

jeffreytse/grimoire-core · 54 tokens

apply-change-leadership

Use when a manager's team is experiencing a significant organizational change — restructuring, strategy shift, leadership change, layoffs, or major process transition — and needs leadership that maintains team stability, preserves trust, and converts uncertainty into direction.

jeffreytse/grimoire-core · 51 tokens

apply-distributed-team-practices

Use when managing a team where members work in different locations, time zones, or on hybrid schedules — to adapt management practices so remote members have equal access to information, relationships, and advancement opportunities as in-office members.

jeffreytse/grimoire-core · 51 tokens