Agent skill

Revit Extensions Backward Compat

by Nice3point in Nice3point/RevitExtensions

Deprecate or replace a public member of Nice3point.Revit.Extensions without breaking downstream consumers, using [Obsolete] with a JetBrains CodeTemplate auto-conversion pattern.

MITAuto-check passed

Install Revit Extensions Backward Compat

skills CLI
$ npx skills add Nice3point/RevitExtensions --skill revit-extensions-backward-compat -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Nice3point/RevitExtensions revit-extensions-backward-compat --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Nice3point/RevitExtensions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/revit-extensions-backward-compat .claude/skills/revit-extensions-backward-compat && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
revit-extensions-backward-compat
GitHub stars
168
Token cost
~2.1k tokens
SKILL.md length
741 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Deprecate or replace a public member of Nice3point.Revit.Extensions without breaking downstream consumers, using [Obsolete] with a JetBrains CodeTemplate auto-conversion pattern.

  • Works in 5 steps: Add the replacement beside the original,… → Mark the original [Obsolete] with a… → Attach the CodeTemplate auto-conversion… → …
  • Superseding an existing extension while keeping the old member functional
  • SKILL.md covers When to use, When not to use, Workflow and Validation, plus 1 more section
  • Calls dotnet

What it does

Revit Extensions Backward Compat is an agent skill from Nice3point/RevitExtensions. Deprecate or replace a public member of Nice3point.Revit.Extensions without breaking downstream consumers, using [Obsolete] with a JetBrains CodeTemplate auto-conversion pattern. USE FOR: renaming or superseding an existing extension while keeping the old member functional; retiring a member that Revit itself deprecated in a specific year; deciding what may change on the public surface and how to migrate callers automatically. DO NOT USE FOR: authoring a brand-new extension from scratch — use…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with JetBrains IDEs and .NET. The repository describes itself as: Extensions for Revit plugin development. The licence is MIT.

When your agent uses it

  • Superseding an existing extension while keeping the old member functional
  • Retiring a member that Revit itself deprecated in a specific year
  • Deciding what may change on the public surface and how to migrate callers automatically
  • : authoring a brand-new extension from scratch — use revit-extensions-authoring

Example prompts

  • “/revit-extensions-backward-compat”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Add the replacement beside the original, both wrapping the raw API
  2. Mark the original [Obsolete] with a message that names the replacement
  3. Attach the CodeTemplate auto-conversion pattern
  4. Gate the deprecation when Revit deprecates the API in a specific year
  5. Confirm nothing on the surface actually broke

What it can do on your machine

Read from SKILL.md and the folder at commit e60a6bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Revit Extensions Backward Compat loads about 2.1k tokens when it runs. Until then it costs about 140 tokens; SKILL.md has 741 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~140
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Nice3point/RevitExtensions at commit e60a6bd, republished under its MIT licence (© Nice3point). 741 words, ~2,100 tokens.

Download SKILL.mdSave it as .claude/skills/revit-extensions-backward-compat/SKILL.md (or your agent's skills folder).
name
revit-extensions-backward-compat
description
Deprecate or replace a public member of Nice3point.Revit.Extensions without breaking downstream consumers, using [Obsolete] with a JetBrains CodeTemplate auto-conversion pattern. USE FOR: renaming or superseding an existing extension while keeping the old member functional; retiring a member that Revit itself deprecated in a specific year; deciding what may change on the public surface and how to migrate callers automatically. DO NOT USE FOR: authoring a brand-new extension from scratch — use revit-extensions-authoring.
license
MIT

Preserving Backward Compatibility in Revit Extensions

Nice3point.Revit.Extensions is a public NuGet library with downstream consumers; its public surface is a contract. A deleted or altered member breaks other people's builds. Keep the old member forever, mark it [Obsolete], and ship a JetBrains CodeTemplate; ReSharper and Rider then auto-migrate call sites to the replacement. This skill covers deprecating, renaming, or superseding an existing member; it depends on JetBrains annotations (JetBrains.Annotations) for both [Obsolete]'s companion CodeTemplate and the surrounding attributes.

When to use

  • Renaming an extension or replacing it with a better-named member while keeping every existing call compiling.
  • Retiring a member whose underlying Revit API was deprecated in a specific Revit year.
  • Deciding whether a proposed change to a signature, return type, or parameter list is allowed at all.

When not to use

  • Adding a member that does not yet exist on the public surface — that is new-surface work; use revit-extensions-authoring.

Workflow

Step 1: Add the replacement beside the original, both wrapping the raw API

Keep the old member in place and add the new one in the same extension(Type) block. Both members call the underlying Revit API directly; the new member never delegates to the old one, and the old one never delegates to the new one. Write full method bodies; an expression-bodied property is fine for a read-only value.

csharp
extension(Element element)
{
    /// <summary>Determines whether element can be mirrored</summary>
    /// <returns>True if the element can be mirrored</returns>
    public bool CanBeMirrored => ElementTransformUtils.CanMirrorElement(element.Document, element.Id);
}
Step 2: Mark the original [Obsolete] with a message that names the replacement

The message states plainly what to use instead. The obsolete member keeps calling the original Revit API; it stays correct and independent and must not recurse into the new extension.

csharp
[Pure]
[Obsolete("Use CanBeMirrored() instead")]
public bool CanMirrorElement()
{
    return ElementTransformUtils.CanMirrorElement(element.Document, element.Id);
}
Step 3: Attach the CodeTemplate auto-conversion pattern

Add [CodeTemplate] beside [Obsolete] so the IDE rewrites call sites automatically. searchTemplate matches the old call, ReplaceTemplate produces the new call, and the two Message/ReplaceMessage strings surface in the inspection and the quick-fix. Use $expr$ for the receiver and match the replacement shape exactly — a property replacement drops the parentheses.

csharp
[Pure]
[Obsolete("Use CanBeMirrored() instead")]
[CodeTemplate(
    searchTemplate: "$expr$.CanMirrorElement()",
    Message = "CanMirrorElement is obsolete, use CanBeMirrored instead",
    ReplaceTemplate = "$expr$.CanBeMirrored",
    ReplaceMessage = "Replace with CanBeMirrored")]
public bool CanMirrorElement()
{
    return ElementTransformUtils.CanMirrorElement(element.Document, element.Id);
}

When the member takes arguments, thread them through the template with named placeholders; the rewrite preserves them:

csharp
[Pure]
[Obsolete("Use CanBeMirrored() instead")]
[CodeTemplate(
    searchTemplate: "$expr$.CanMirrorElements($document$)",
    Message = "CanMirrorElements is obsolete, use CanBeMirrored instead",
    ReplaceTemplate = "$expr$.CanBeMirrored($document$)",
    ReplaceMessage = "Replace with CanBeMirrored()")]
public bool CanMirrorElements(Document document)
{
    return ElementTransformUtils.CanMirrorElements(document, elements);
}
Step 4: Gate the deprecation when Revit deprecates the API in a specific year

If the underlying Revit API is only obsolete from a given release, wrap just the [Obsolete] and [CodeTemplate] attributes in the matching #if; the member deprecates on the versions that warrant it and stays clean elsewhere. When the replacement adds a parameter, add it as an optional argument at the end; use a $placeholder$ in the template for the new argument.

csharp
[Pure]
#if REVIT2027_OR_GREATER
[Obsolete("This method is deprecated in Revit 2027 and may be removed in a later version of Revit. We suggest you use the overload which accepts a region input instead.")]
[CodeTemplate(
    searchTemplate: "$expr$.DownloadParameterOptions()",
    Message = "DownloadParameterOptions() is obsolete, use overload with region parameter",
    ReplaceTemplate = "$expr$.DownloadParameterOptions($arg$)",
    ReplaceMessage = "Replace with DownloadParameterOptions(region)")]
#endif
public ParameterDownloadOptions DownloadParameterOptions()
{
    return ParameterUtils.DownloadParameterOptions(typeId);
}
Show full SKILL.md (329 more words)Show less
Step 5: Confirm nothing on the surface actually broke

Hold every change to the allowed set before you compile:

  • Never change an existing signature or return type — the only allowed return-type change is a void mutation becoming its source object for chaining.
  • Add new parameters only as optional, and only at the end of the list.
  • Keep the old member functional indefinitely; deprecation is not deletion.

Then compile every configuration from the build directory and update the shipped docs in the same change.

shell
dotnet run -c Release

Update Readme.md, add a categorized Changelog.md entry for the deprecation, and keep the XML docs on both the old and new members.

Validation

  • The original member still exists, still compiles, and still calls the original Revit API, not the new member.
  • [Obsolete] carries a message that names the replacement; no [EditorBrowsable(EditorBrowsableState.Never)] sits on an obsolete Element extension.
  • [CodeTemplate] supplies searchTemplate, ReplaceTemplate, Message, and ReplaceMessage, and the replacement shape matches the new member (property vs. method, argument placeholders preserved).
  • A Revit-year-specific deprecation wraps only the attributes in the matching #if.
  • No signature or return type changed; any new parameter is optional and last; dotnet run -c Release compiles every configuration and Readme.md/Changelog.md/XML docs are updated.

Common Pitfalls

PitfallCorrect approach
Deleting or renaming the old member outrightKeep it, mark it [Obsolete], and add the replacement beside it.
The obsolete member calling the new extensionCall the original Revit API from the obsolete member; it never recurses and stays independent.
[EditorBrowsable(Never)] on an obsolete Element extensionOmit it; let the member stay discoverable while [Obsolete] warns.
[Obsolete] without a [CodeTemplate]Add the searchTemplate → ReplaceTemplate pattern; callers auto-migrate.
ReplaceTemplate keeping parentheses for a property replacementMatch the replacement exactly — drop the () when the new member is a property.
Changing a signature or return type, or inserting a required parameterAdd a new member or an optional trailing parameter instead.
Deprecating unconditionally when Revit deprecates only in a later yearWrap just the [Obsolete]/[CodeTemplate] attributes in the matching #if.

© Nice3point, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/revit-extensions-backward-compat of Nice3point/RevitExtensions.

Open the folder on GitHubat commit e60a6bd

Compare with similar skills

Revit Extensions Backward Compat next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Revit Extensions Backward Compat compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Revit Extensions Backward Compat this skillNice3point/RevitExtensions168—~2.1kAutomated safety check: PassMIT
Revit Toolkit Backward CompatNice3point/RevitToolkit176—~2kAutomated safety check: PassMIT
Formatplatformplatform/PlatformPlatform441—~445Automated safety check: PassMIT
Lintplatformplatform/PlatformPlatform441—~632Automated safety check: PassMIT
ProfileLog2n-io/Typhon250—~1.4kAutomated safety check: PassCustom licence
Mcaf Dotnet Resharper Cltmanagedcode/Storage138—~1.5kAutomated safety check: PassMIT

Similar skills

  • Revit Toolkit Backward Compat

    Nice3point/RevitToolkit

    Evolve the public surface of Nice3point.Revit.Toolkit without breaking downstream consumers: deprecate a renamed or replaced member with [Obsolete] with a JetBrains [CodeTemplate] auto-conversion…

    176 GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Format

    platformplatform/PlatformPlatform

    Auto-format code via the developer CLI - backend (.NET via JetBrains cleanupcode), frontend (oxfmt + oxlint --fix), and the developer CLI itself.

    441 GitHub stars~445 tokensUpdated 16 days ago
    Frontend & DesignAuto-check passed
  • Lint

    platformplatform/PlatformPlatform

    Lint code via the developer CLI - backend (.NET via JetBrains inspectcode), frontend (oxlint), and the developer CLI itself.

    441 GitHub stars~632 tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • Profile

    Log2n-io/Typhon

    Profile a benchmark workload with dotTrace sampling, generate an XML report, and analyze hot spots

    250 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Mcaf Dotnet Resharper Clt

    managedcode/Storage

    Use the free official JetBrains ReSharper Command Line Tools for .NET repositories.

    138 GitHub stars~1.5k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Resharper Clt

    managedcode/dotnet-skills

    Use the free official JetBrains ReSharper Command Line Tools for .NET repositories.

    486 GitHub stars~1.5k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from Nice3point/RevitExtensions

  • Revit Extensions Authoring

    Nice3point/RevitExtensions

    Add a fluent extension to Nice3point.Revit.Extensions with C 14 extension(Type){} blocks that wrap the raw Revit API for readability and chaining.

    168 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed

Questions about Revit Extensions Backward Compat

What does Revit Extensions Backward Compat do?

Deprecate or replace a public member of Nice3point.Revit.Extensions without breaking downstream consumers, using [Obsolete] with a JetBrains CodeTemplate auto-conversion pattern. Revit Extensions Backward Compat is an agent skill from Nice3point/RevitExtensions.Extensions without breaking downstream consumers, using [Obsolete] with a JetBrains CodeTemplate auto-conversion pattern.

When should I use Revit Extensions Backward Compat?

Revit Extensions Backward Compat fits situations like: superseding an existing extension while keeping the old member functional; retiring a member that Revit itself deprecated in a specific year; deciding what may change on the public surface and how to migrate callers automatically; : authoring a brand-new extension from scratch — use revit-extensions-authoring.

How do I install Revit Extensions Backward Compat in Claude Code?

Run `npx skills add Nice3point/RevitExtensions --skill revit-extensions-backward-compat -a claude-code`. Or copy the skill folder (.agents/skills/revit-extensions-backward-compat in Nice3point/RevitExtensions) into .claude/skills/revit-extensions-backward-compat in your project. Claude Code loads it when a task matches its description.

How do I install Revit Extensions Backward Compat in Codex?

Run `npx skills add Nice3point/RevitExtensions --skill revit-extensions-backward-compat -a codex`. Or copy the skill folder (.agents/skills/revit-extensions-backward-compat in Nice3point/RevitExtensions) into .agents/skills/revit-extensions-backward-compat in your project. Codex loads it when a task matches its description.

Can I use Revit Extensions Backward Compat in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nice3point/RevitExtensions --skill revit-extensions-backward-compat -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/revit-extensions-backward-compat, .gemini/skills/revit-extensions-backward-compat, .github/skills/revit-extensions-backward-compat and .opencode/skills/revit-extensions-backward-compat in your project.

What does Revit Extensions Backward Compat need to run?

Going by SKILL.md and its folder, Revit Extensions Backward Compat needs the command-line tools its instructions call (dotnet).

Does Revit Extensions Backward Compat access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Revit Extensions Backward Compat safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Revit Extensions Backward Compat use?

Revit Extensions Backward Compat is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Revit Extensions Backward Compat use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Revit Extensions Backward Compat?

Skills that share tags, products or a category with Revit Extensions Backward Compat: Revit Toolkit Backward Compat (Nice3point/RevitToolkit, 176 stars), Format (platformplatform/PlatformPlatform, 441 stars), Lint (platformplatform/PlatformPlatform, 441 stars) and Profile (Log2n-io/Typhon, 250 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Revit Extensions Backward Compat?

Nice3point (a GitHub user) maintains it in Nice3point/RevitExtensions, which has 168 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 9, 2026.

Source: Nice3point/RevitExtensions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.