Builds Autodesk Revit ribbon panels and buttons using the Nice3point.Revit.Extensions fluent API. Creates tabs, push/pulldown/split buttons, stacked rows, icons, tooltips, shortcuts, and availability controllers in ExternalApplication.OnStartup.
Ships in revit-ui. 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.
None: SKILL.md is the whole skill.
The Nice3point.Revit.Extensions ribbon API wraps the verbose, stringly-typed raw API (RibbonPanel.AddItem(new PushButtonData(...)), manual BitmapImage URIs, manual tab creation) into a fluent, generic, theme-aware chain.
CreatePanel creates the tab when it does not exist and returns an existing panel of the same name.
Repeated calls are safe.
ExternalApplication.OnStartup.PushButtonData and BitmapImage manually.revit-context-menu.var panel = application.CreatePanel("Analysis", "MyAddin");
application is the UIControlledApplication from OnStartup.
The overload without a tab name adds the panel to the add-ins tab.
panel.AddPushButton<AnalyzeCommand>("Analyze")
.SetImage("/MyAddin;component/Resources/Icons/Analyze16.png")
.SetLargeImage("/MyAddin;component/Resources/Icons/Analyze32.png");
AddPushButton<TCommand> binds the button to the command type.
Group related commands under AddPullDownButton("…") or AddSplitButton("…") and add their children with the pulldown's own AddPushButton<TCommand>; AddRadioButtonGroup, AddComboBox, and AddTextBox add the other input controls.
var pulldown = panel.AddPullDownButton("Tools");
pulldown.AddPushButton<AnalyzeCommand>("Analyze");
pulldown.AddPushButton<ExportCommand>("Export");
AddStackPanel arranges one to three small items in a vertical stack, and additional items start a new column.
The stack panel exposes its own AddPushButton/AddPullDownButton/AddSplitButton/AddComboBox/AddTextBox, and AddLabel for a caption.
var stack = panel.AddStackPanel();
stack.AddPushButton<AnalyzeCommand>("Analyze");
stack.AddLabel("Mode:");
stack.AddComboBox();
On the stack panel the pulldown and split overloads take (buttonText, internalName).
SetImage/SetLargeImage take a pack URI; when the file path contains light/dark, the icon switches with the Revit theme (2024+).
Add SetToolTip, SetLongDescription (which accepts <p> paragraphs), and SetAvailabilityController<T>, which disables the button when its command is unavailable.
Bind keyboard shortcuts with AddShortcuts (or TryAddShortcuts, which skips if other buttons use this shortcut); both support a params enumeration.
panel.AddPushButton<AnalyzeCommand>("Analyze")
.SetToolTip("Analyze the active model")
.SetLongDescription("<p>Runs the analysis and writes a report.</p>")
.SetAvailabilityController<DocumentAvailableController>()
.AddShortcuts("RA");
Tint the panel body, its title bar, or its slide-out area with SetBackground, SetTitleBarBackground, and SetSlideOutPanelBackground — each takes a color name, a Color, or a WPF Brush.
Launch Revit and confirm the panel and buttons appear on the tab, icons render in both light and dark themes, and each button invokes its command.
CreatePanel, not manually created tabs.AddPushButton<TCommand>, not raw PushButtonData.SetImage/SetLargeImage.OnStartup.| Pitfall | Correct approach |
|---|---|
panel.AddItem(new PushButtonData(...)) | panel.AddPushButton<TCommand>("…"). |
new BitmapImage(new Uri("pack://…")) per button | .SetLargeImage("/Addin;component/…png"). |
| Two panels of the same name created twice | CreatePanel returns the existing panel; call it directly. |
CreatePanel/AddPushButton not found | The Nice3point.Revit.Extensions package is not referenced. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/revit-command-and-applicationBuild Autodesk Revit add-in entry points with Nice3point.Revit.Toolkit base classes, not raw IExternalCommand/IExternalApplication interfaces. USE FOR: authoring an external command or application with a simplified Execute()/OnStartup() override, optional OnShutdown() override, ready context properties, and automatic dependency resolution. DO NOT USE FOR: dispatching API work from code that runs outside the Revit API context (use revit-external-events).
/revit-context-accessAccess the Autodesk Revit database application through RevitApiContext or an active UI session through RevitContext from Nice3point.Revit.Toolkit, and suppress dialogs. USE FOR: reading Application, the current UiApplication/ActiveDocument/ActiveView without a commandData, or suppressing TaskDialog and message boxes with BeginDialogSuppressionScope. DO NOT USE FOR: suppressing expected Revit warnings and failures during a transaction.
/revit-context-menuAdd Autodesk Revit right-click context menu entries with the Nice3point.Revit.Extensions fluent API. USE FOR: registering context menu items, submenus, and separators bound to command classes during application startup. DO NOT USE FOR: ribbon panels and buttons (use revit-ribbon).
/revit-dockable-paneRegister a WPF dockable pane in the Autodesk Revit UI with Nice3point.Revit.Toolkit DockablePaneProvider. USE FOR: registering a dockable pane and its initial dock state during application startup with the fluent API.
/revit-external-eventsRun Autodesk Revit API work from code that executes outside the Revit API context, using Nice3point.Revit.Toolkit external events. USE FOR: raising API work from a modeless window, background thread, or other non-API-context callback via the toolkit's external events or the [ExternalEvent] source generator. DO NOT USE FOR: code that already runs in the Revit API context — call the API directly.
/revit-selection-filterFilter which elements and references a user can pick in Autodesk Revit UI with the Nice3point.Revit.Toolkit SelectionConfiguration, not a custom ISelectionFilter. USE FOR: constraining an interactive Selection.PickObject/PickObjects with a fluent Allow.Element / Allow.Reference filter. DO NOT USE FOR: headless API callbacks such as family load or duplicate-type options (use Toolkit option handlers like FamilyLoadOptions).
/revit-ui:revit-ribbonfrom revit-ui
npx claudepluginhub nice3point/revit-skills --plugin revit-uiOther plugins' skills for the same job