agentleFS
MicrosoftKnown publishermicrosoft/agent-framework/python/.github/skills/python-feature-lifecycle/SKILL.md

python-feature-lifecycle

Skill14k starsChanged 10 months agoMITView on GitHub

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-framework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-framework

The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 31

Talked about on GitHub, Bluesky and Hacker News (31 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

Show its rules and text

We split this skill into the rules it gives an agent

39 rules. About 0 are common, 31 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈31

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Feature-stage decorators are only for exceptions: when a feature is behind the package's default stage.

    line 21
  2. Distinctive:

    Do not decorate every class or function just because the package is experimental or release candidate.

    line 22
  3. Distinctive:

    If a package is still in beta / experimental preview, all public APIs in that package are experimental by default.

    line 26
  4. Very specific:

    Do not add @experimental(...) everywhere in that package.

    line 28
  5. Distinctive:

    If a package moves to release candidate, a feature may remain experimental

    line 33
  6. Distinctive:

    If a package moves to released / GA, a feature may remain experimental or release candidate

    line 34
  7. Distinctive:

    Use for features that are still unstable and may change or be removed without notice.

    line 42
  8. Very specific:

    Add an all-caps member to ExperimentalFeature

    line 63
  9. Distinctive:

    Use for features that are nearly stable but may still receive small refinements before GA.

    line 68
  10. Distinctive:

    Use for stable GA APIs.

    line 93
  11. Distinctive:

    If a feature is fully released, remove any stage-specific feature annotation.

    line 101
  12. Distinctive:

    Use for APIs that still exist but should not be used for new code.

    line 105
  13. Distinctive:

    Should describe what to use instead

    line 126
  14. Distinctive:

    Use one enum member per conceptual feature, not per class

    line 148
  15. Distinctive:

    Keep feature IDs all caps

    line 150
  16. Distinctive:

    Remove enum members when the feature no longer belongs to that stage

    line 152
  17. Distinctive:

    Treat these enums as current-stage inventories, not as a stable consumer introspection API

    line 153
  18. Very specific:

    Treat __feature_stage__ and __feature_id__ as optional staged metadata, not as stable contracts

    line 157
  19. Very specific:

    Use getattr(obj, "__feature_stage__", None) and getattr(obj, "__feature_id__", None) rather than direct attribute access

    line 158
  20. Distinctive:

    Treat missing metadata as "no explicit feature-stage annotation"

    line 159
  21. Very specific:

    Do not rely on ExperimentalFeature.X, ReleaseCandidateFeature.X, or the continued presence of __feature_id__ after a feature moves stages …

    line 161
  22. Distinctive:

    Use the following rules:

    line 169
  23. Distinctive:

    All public APIs are experimental by default

    line 173
  24. Distinctive:

    Do not add feature-stage decorators just to restate that

    line 174
  25. Distinctive:

    Only introduce feature-level annotations later if the package advances first

    line 175
  26. Distinctive:

    All public APIs are RC by default

    line 179
  27. Distinctive:

    Do not decorate everything

    line 180
  28. Very specific:

    Add @experimental(...) only for features that are intentionally still behind the package

    line 181
  29. Distinctive:

    All public APIs are released by default

    line 185
  30. Very specific:

    Add @experimental(...) or @release_candidate(...) only for features still being held back

    line 186
  31. Distinctive:

    Update any tests or docs that mention the old stage

    line 194
  32. Very specific:

    Remove the feature from ExperimentalFeature

    line 199
  33. Distinctive:

    Do not add a replacement feature-stage decorator

    line 200
  34. Distinctive:

    Leave the API undecorated

    line 206
  35. Distinctive:

    Remove any feature-stage decorator

    line 210
  36. Distinctive:

    Remove the feature from the stage enum

    line 211
  37. Distinctive:

    Update docs/tests to reflect the replacement path

    line 213
  38. Distinctive:

    Do not force a feature through release candidate if there is no real RC period

    line 221
  39. Distinctive:

    Keep lagging features explicitly marked only when they are behind the package default

    line 226

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Python Feature Lifecycle

Two lifecycle levels

Agent Framework uses lifecycle at two different levels:

  1. Package lifecycle — the maturity of the package as a whole
  2. Feature lifecycle — the maturity of a specific API or feature inside that package

These are related, but they are not the same thing.

  • The package stage is the default for everything in the package.
  • Feature-stage decorators are only for exceptions when a feature is behind the package's default stage.
  • Do not decorate every class or function just because the package is experimental or release candidate.

Important default

If a package is still in beta / experimental preview, all public APIs in that package are experimental by default.

  • Do not add @experimental(...) everywhere in that package.
  • The package stage already communicates that default.

Once a package moves forward, you can keep individual features behind:

  • If a package moves to release candidate, a feature may remain experimental
  • If a package moves to released / GA, a feature may remain experimental or release candidate

That is the main use case for feature-stage decorators.

The four stages

1. Experimental

Use for features that are still unstable and may change or be removed without notice.

Feature-level code pattern:

from ._feature_stage import ExperimentalFeature, experimental


@experimental(feature_id=ExperimentalFeature.MY_FEATURE)
class MyFeature:
    ...

Behavior:

  • Adds an experimental warning block to the docstring
  • Records feature metadata on the decorated object
  • Emits a runtime warning the first time the feature is used (once per feature by default)

Enum setup:

  • Add an all-caps member to ExperimentalFeature
  • Reuse the same feature ID across all APIs that belong to the same conceptual feature

2. Release candidate

Use for features that are nearly stable but may still receive small refinements before GA.

Feature-level code pattern:

from ._feature_stage import ReleaseCandidateFeature, release_candidate


@release_candidate(feature_id=ReleaseCandidateFeature.MY_FEATURE)
class MyFeature:
    ...

Behavior:

  • Adds a release-candidate note to the docstring
  • Records feature metadata on the decorated object
  • Does not emit the experimental warning

Enum setup:

  • Add an all-caps member to ReleaseCandidateFeature

3. Released

Use for stable GA APIs.

Code pattern:

  • No feature-stage decorator
  • No entry in ExperimentalFeature
  • No entry in ReleaseCandidateFeature

If a feature is fully released, remove any stage-specific feature annotation.

4. Deprecated

Use for APIs that still exist but should not be used for new code.

Code pattern:

import sys

if sys.version_info >= (3, 13):
    from warnings import deprecated  # type: ignore # pragma: no cover
else:
    from typing_extensions import deprecated  # type: ignore # pragma: no cover


@deprecated("MyOldFeature is deprecated. Use MyNewFeature instead.")
class MyOldFeature:
    ...

Behavior:

  • Uses the repository's version-conditional deprecation import pattern
  • Should describe what to use instead

Deprecated APIs should not also carry feature-stage decorators.

Expected decorators by stage

Feature stageExpected annotation
Experimental@experimental(feature_id=ExperimentalFeature.X)
Release candidate@release_candidate(feature_id=ReleaseCandidateFeature.X)
ReleasedNo feature-stage decorator
Deprecated@deprecated("...")

Feature enums

The feature enums are the inventory of currently staged features:

  • ExperimentalFeature
  • ReleaseCandidateFeature

Guidance:

  • Use one enum member per conceptual feature, not per class
  • Ideally, an ADR already defines the overall feature boundary and therefore the feature ID that staged APIs for that feature should reuse
  • Keep feature IDs all caps
  • Reuse the same member across related APIs for the same feature
  • Remove enum members when the feature no longer belongs to that stage
  • Treat these enums as current-stage inventories, not as a stable consumer introspection API

Minimal consumer guidance:

  • Treat __feature_stage__ and __feature_id__ as optional staged metadata, not as stable contracts
  • Use getattr(obj, "__feature_stage__", None) and getattr(obj, "__feature_id__", None) rather than direct attribute access
  • Treat missing metadata as "no explicit feature-stage annotation"
  • For warning filters while a feature is staged, match the literal feature ID string
  • Do not rely on ExperimentalFeature.X, ReleaseCandidateFeature.X, or the continued presence of __feature_id__ after a feature moves stages or is released

For consumers, the enums are also re-exported from agent_framework.

For internal implementation code inside agent_framework, continue to import the enums and decorators from ._feature_stage.

Package stage vs feature stage

Use the following rules:

Package is experimental / beta

  • All public APIs are experimental by default
  • Do not add feature-stage decorators just to restate that
  • Only introduce feature-level annotations later if the package advances first

Package is release candidate

  • All public APIs are RC by default
  • Do not decorate everything
  • Add @experimental(...) only for features that are intentionally still behind the package

Package is released / GA

  • All public APIs are released by default
  • Add @experimental(...) or @release_candidate(...) only for features still being held back

Moving a feature from one stage to the next

Experimental -> Release candidate

  1. Move the feature ID from ExperimentalFeature to ReleaseCandidateFeature
  2. Replace @experimental(...) with @release_candidate(...)
  3. Update any tests or docs that mention the old stage

Experimental -> Released

  1. Remove @experimental(...)
  2. Remove the feature from ExperimentalFeature
  3. Do not add a replacement feature-stage decorator

Release candidate -> Released

  1. Remove @release_candidate(...)
  2. Remove the feature from ReleaseCandidateFeature
  3. Leave the API undecorated

Any stage -> Deprecated

  1. Remove any feature-stage decorator
  2. Remove the feature from the stage enum
  3. Add @deprecated("...")
  4. Update docs/tests to reflect the replacement path

Promotion guidance

Features do not have to pass through every stage.

  • It is usually a good idea to move features in order when that reflects reality
  • But it is completely acceptable to go experimental -> released
  • Do not force a feature through release candidate if there is no real RC period

Likewise, when a package advances, do not automatically move every feature with it.

  • Promote features based on actual readiness
  • Keep lagging features explicitly marked only when they are behind the package default

Practical rules of thumb

  • Package default first, feature exceptions second
  • Do not decorate everything in preview packages
  • Do not double-annotate members of an already-staged class
  • Use enums only for currently staged features
  • Do not treat stage enums as a compatibility contract
  • Treat __feature_stage__ and __feature_id__ as optional metadata; use getattr
  • Remove stage annotations once a feature is released or deprecated

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.