Replaces verbose Autodesk Revit *Utils static calls, static managers, and hand-written enum/id conversions with Nice3point.Revit.Extensions fluent extensions. Use for MoveElement, LabelUtils, UnitUtils, SolidUtils, and enum-to-id conversions.
Ships in revit-api. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
SomeUtils.Operation() static method or a verbose *Manager getter.BuiltInParameter/BuiltInCategory/ForgeTypeId, formatting or parsing a unit, or reading a color as hex or RGB.revit-element-collector.revit-element-and-parameter-access.When the raw call is SomeUtils.Operation(document, element.Id, …) or a long getter, the facade is a method on the natural receiver.
ElementTransformUtils.MoveElement(document, element.Id, new XYZ(1, 1, 0)); // raw
element.Move(1, 1, 0); // facade
LabelUtils.GetLabelFor(BuiltInParameter.WALL_TOP_OFFSET); // raw
BuiltInParameter.WALL_TOP_OFFSET.ToLabel(); // facade
UnitUtils.ConvertToInternalUnits(69, UnitTypeId.Millimeters); // raw
69d.FromMillimeters(); // facade
SolidUtils.SplitVolumes(solid); // raw
solid.SplitVolumes(); // facade
Many members are conveniences with no raw equivalent. Use them directly, and do not hand-write the conversion:
ElementId wallsId = BuiltInCategory.OST_Walls.ToElementId(); // enum -> id
Category category = BuiltInCategory.OST_Walls.ToCategory(document); // enum -> object
string hex = color.ToHex(); // Color -> "#RRGGBB"
Each reference lists its domain's extensions in full — member, purpose, and a grounded example on the real receiver — with the raw *Utils class named in each section heading.
Load the one that matches the task, and do not guess a signature.
ForgeTypeId spec, unit, or parameter.A newer Extensions package may expose members not shown here. If the Utils wrapper is not found, read the package README.
*Utils static calls and *Manager getters are replaced by the receiver-first facade.UnitUtils/LabelUtils calls.ToElementId, ToHex, Round, …) replace hand-written equivalents.| Pitfall | Correct approach |
|---|---|
ElementTransformUtils.MoveElement(document, id, v) | element.Move(x, y, z). |
LabelUtils.GetLabelFor(parameter) | parameter.ToLabel(). |
| Assuming a facade changes behavior | Facades only re-express the raw API; semantics match. |
| Hand-writing an id, color, or unit converter | Use the built-in ToElementId/ToHex/FromMillimeters conveniences. |
solid.Faces.Cast<Face>() | solid.Faces.EnumerateValues(). |
A ForwardIterator() loop to read map keys | map.EnumerateEntries() / EnumerateKeys() / TryGetValue(key, out var value). |
| Extension not found | The Nice3point.Revit.Extensions package is not referenced. |
references/collections-and-maps.md (opens in a new tab)references/converters-and-helpers.md (opens in a new tab)references/disciplines-and-interop.md (opens in a new tab)references/document-and-storage.md (opens in a new tab)references/geometry.md (opens in a new tab)references/transforms-and-modeling.md (opens in a new tab)references/units-labels-forge.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/revit-api:revit-utils-extensionsfrom revit-api
npx claudepluginhub nice3point/revit-skills --plugin revit-api7 skills in this plugin
/revit-api-option-handlersSupply small Autodesk Revit API callback interfaces with Nice3point.Revit.Toolkit ready-made handlers, not hand-rolled classes. USE FOR: passing IFamilyLoadOptions, IDuplicateTypeNamesHandler, or ISaveSharedCoordinatesCallback to a Revit API call. DO NOT USE FOR: constraining what a user can pick in an interactive selection, or building a dockable pane's UI element.
/revit-code-styleStructure Autodesk Revit API code — API boundaries, document and transaction lifetime, thread affinity, and converting Revit objects to plain models. USE FOR: structuring Revit API code — which projects may reference Revit types, which scope opens and closes a document, how to scope a transaction, thread affinity, and converting Revit objects before they cross a service or process boundary. DO NOT USE FOR: the mechanics of individual model operations (querying, parameter read/write, *Utils wrappers), which have their own focused skills — apply this to the structure around them.
/revit-element-and-parameter-accessRead and write Autodesk Revit elements and parameters with the Nice3point.Revit.Extensions fluent accessors. USE FOR: finding an Element by ElementId, finding a parameter by BuiltInParameter/ParameterTypeId/Guid/name, reading its typed value, setting it, and converting internal units. DO NOT USE FOR: querying the model for a set of elements (use revit-element-collector).
/revit-element-collectorQuery the Revit model with the Nice3point.Revit.Extensions fluent FilteredElementCollector wrappers; filter with Revit's parameter filters, not by loading elements and filtering with LINQ. USE FOR: writing or reviewing element queries that filter by class, category, or parameter value and return the first match, a count, or the full set. DO NOT USE FOR: reading or setting parameters on an element already retrieved (use revit-element-and-parameter-access).
/revit-extensible-storagePersist add-in data inside the Revit document with Extensible Storage, laid out as a data class, a schema definition, and a typed context per stored subject. USE FOR: storing custom data on a document or on an element, defining or evolving a schema, choosing the element that stores the data, and finding the elements that contain it. DO NOT USE FOR: reading or writing values the user sees as element parameters (use revit-element-and-parameter-access).
/revit-failure-handlingSuppress expected Autodesk Revit warnings and failures during a bounded API operation with Nice3point.Revit.Toolkit RevitApiContext. USE FOR: auto-resolving or auto-cancelling a known failure that would otherwise block opening a document, loading a family, or committing a transaction. DO NOT USE FOR: suppressing UI dialogs that are not failures (use RevitContext.BeginDialogSuppressionScope), or running API work from outside the Revit API context (use a Toolkit external event).
Other plugins' skills for the same job