Factory Learn logo

Factory Learn

Organization
tikalk
factory-learn

Use when coordinating continuous improvement loops (team-levelup + change + evals feedback + cleanup) targeting team-ai-directives — includes build-to-delete pruning and promote-to-check.

Overview

Publishertikalk
Repositoryadlc-team-skills
Skill namefactory-learn
Stars
144
Forks
2
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Factory Learn 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/tikalk/adlc-team-skills/tree/main/skills/factory/factory-learn
  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/tikalk/adlc-team-skills.git /tmp/adlc-team-skills
mkdir -p .claude/skills
cp -r /tmp/adlc-team-skills/skills/factory/factory-learn .claude/skills/factory-learn
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Factory Learn 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 Factory Learn 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 Factory Learn 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.

factory-learn

What this skill does

factory-learn orchestrates the continuous improvement learning loop of the software factory. It coordinates individual learning-related skills (team-init, team-levelup, change-init, change-clarify, change-publish, team-repair, evals-analyze) to transition draft directives into verified, published, and minimal team context assets.

It operates as a Kind-A DAG orchestrator in alignment with the shared executor engine contract in factory-mission/references/executor.md.


When to use

  • You want to extract and compile hard-won session learnings into your team's centralized team-ai-directives repository.
  • You want to mine git commit history to capture the rationale (ChDRs) behind past reverts and hotfixes.
  • You want to run "Build to Delete" (Harness Decay checks) to prune redundant rules.

When NOT to use:

  • For product-level specification or development (use factory-intent or factory-mission instead).
  • If the team directives repository is completely unconfigured (run /team-setup first).

Lifecycle DAG & Step Resolution

factory-learn implements a fixed named-skill DAG (fixed step resolution):

Session Learnings Route (default on session-end)

  1. specify (generate phase) -> Invoke team-levelup to extract candidate Context Directive Records (CDRs) and compliances from the active session.
  2. clarify⭐ (clarify phase) -> Invoke team-levelup to review pending CDRs. Enforces the evals-regression gate (running the compliance goldset as the verify sub-phase to ensure no quality degradation).
  3. publish (build phase) -> Invoke team-levelup to package accepted CDRs, index them, and compile a draft PR targeting the team-ai-directives repository.
  4. prune (analyze phase) -> Runs the cleanup bot over the directive store to detect and propose deprecations of superseded, contradictory, or stale rules. Deprecations feed back to team-levelup.

Historical Mining Route (brownfield)

  1. init (generate phase) -> Invoke change-init to mine git history and issue trackers for Change Decision Records (ChDRs).
  2. clarify⭐ (clarify phase) -> Invoke change-clarify to run interactive provenance reviews on mined claims.
  3. publish (build phase) -> Invoke change-publish to promote accepted ChDRs into docs/adlc/memory/chdr/ and regenerate indices.

Maintenance & Build-to-Delete Route (periodic)

  1. verify (verify phase) -> Run team-repair --build-to-delete. Re-runs goldset evals with rules temporarily disabled. Two questions per rule:
    • Build-to-delete: if the model passes without the rule, the rule is flagged as redundant.
    • Promote-to-check (deterministic-checks-first, EVAL-010): if a deterministic check (unit test / binary grader / pre-commit hook / lint rule / CI job) can mechanically enforce the rule, flag it as a promotion candidate — pay once for the check instead of re-injecting a fuzzy rule into every session.
  2. clarify⭐ -> Proposes the redundant rule's deprecation and the mechanical rule's promotion to team-levelup for human review. Promotions route to action P — Promote to check (team-levelup Phase 2b); once the check exists and runs in CI, the CDR is deprecated or reduced to a thin pointer. Both proposals publish as findings.

Workflow Retrospective Route

Runs periodically or on-demand to analyze past runs of other factory skills (e.g. factory-mission, factory-intent) and generate workflow memories:

  1. analyze (analyze phase) -> Scan completed/failed runs' shared state (.adlc/workflows/runs/<run_id>/state.json via adlc-cli workflow status) and evidence files. Identify patterns, recurring errors, or successful corrections.
    • Also sweep .adlc/drafts/{adr,pdr,chdr,cdr,evals}/ for unclarified entries (frontmatter/heading status proposed/discovered/draft); surface each as a finding (Draft ID + type + age), independent of whether session_end/file_edited hooks ever fired.
  2. clarify⭐ -> Present proposed memories (active vs tentative) to the user (in gated/hybrid modes) or auto-approve (in autonomous mode).
  3. publish (build phase) -> Write approved memories to .adlc/workflows/memory.jsonl (workspace-global). Memories carry weights and use counts; stale or counter-productive memories are automatically archived.

Shared Executor Overrides

factory-learn overrides the shared executor engine primitives as follows:

  1. Publish Target: Fixed to external-repo. Opens or updates a draft pull request on the configured team-ai-directives repository. Since the publish target is a PR on the directives repo, the comment bus operates on that PR — step outputs (decisions, findings) are published as marker comments on the directives PR.
  2. Output Types: Steps use the following output_type assignments:
    • specify/init → draft (CDR/ChDR drafts stay in .adlc/drafts/, not published to comment bus)
    • clarify⭐ → decision (accepted/rejected CDR/ChDR list published to comment bus on the directives PR)
    • publish → artifact-ref (PR URL reference published, content stays on disk)
    • prune/verify → findings (redundancy/deprecation report published to comment bus)
  3. Feedback Loop Ingestion: Automatically consumes the output of evals-analyze (when an application test fails due to specification issues, evals-analyze automatically routes to team-levelup, which triggers this orchestrator).
  4. Supervision Default: hybrid. Human gates are hard-enforced at clarify⭐ (approval of CDR/ChDR entries) and at final PR creation.
  5. Pre-flight Check: Verifies that team-levelup, change-*, and team-* skills are installed, and that the directives repo path is set in .adlc/init-options.json.

Frequently asked questions

What does the Factory Learn AI skill do?

Use when coordinating continuous improvement loops (team-levelup + change + evals feedback + cleanup) targeting team-ai-directives — includes build-to-delete pruning and promote-to-check.

Why use Factory Learn on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/tikalk/adlc-team-skills/tree/main/skills/factory/factory-learn. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Factory Learn?

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 Factory Learn?

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

Is the Factory Learn AI skill free?

Yes. It is published on GitHub by tikalk under the MIT license. 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 👇