teaceo-debug/DEEP6 / .claude/skills/nt8-build-verify
nt8-build-verify
Verified| File | Kind | Size |
|---|---|---|
| README.md | markdown | 13.6 KB |
| SKILL.md | skill md | 1.5 KB |
| fixes/BRACE_MISMATCH.md | markdown | 5.1 KB |
| fixes/CS0019.md | markdown | 4.7 KB |
| fixes/CS0101.md | markdown | 4.9 KB |
| fixes/CS0103.md | markdown | 4.0 KB |
| fixes/CS0246.md | markdown | 5.4 KB |
| fixes/CS0535.md | markdown | 3.6 KB |
| fixes/CS1061.md | markdown | 5.0 KB |
| fixes/MISSING_ATTRIBUTE.md | markdown | 5.9 KB |
| knowledge.md | markdown | 3.5 KB |
| lib/__init__.py | script | 0 B |
| lib/diagnostics.py | script | 2.3 KB |
| lib/nt8_paths.py | script | 3.8 KB |
| scripts/compile_editor.ps1 | script | 5.1 KB |
| scripts/compile_headless.ps1 | script | 9.2 KB |
| scripts/deploy.ps1 | script | 2.6 KB |
| scripts/fix_loop.ps1 | script | 19.7 KB |
| scripts/fix_router.py | script | 15.8 KB |
| scripts/install_indicator.ps1 | script | 16.0 KB |
| scripts/modal_detect.ps1 | script | 10.9 KB |
| scripts/orchestrator.ps1 | script | 19.8 KB |
| scripts/parse_errors.py | script | 4.6 KB |
| scripts/runtime_check.ps1 | script | 2.9 KB |
| scripts/screenshot_chart.ps1 | script | 7.5 KB |
| scripts/verify_visual.py | script | 8.0 KB |
| scripts/workspace_mutator.py | script | 17.6 KB |
fixes/MISSING_ATTRIBUTE.md
View on GitHub# MISSING_ATTRIBUTE — Missing required property attributes
## Pattern
NT8 compile warning or runtime serialization error:
```
warning: Public property 'X' of type 'Series<T>' is missing [Browsable(false)] attribute
warning: Public property 'X' is missing [XmlIgnore] attribute
```
Or at runtime: NT8 throws a serialization exception when saving/loading a workspace that includes the indicator.
These are not always CS#### compile errors — they may appear as NT8 Output Window warnings or as runtime crashes. Treat them as errors that must be fixed before deployment.
## Root Causes (ordered by likelihood)
1. A public `Series<T>` property was added to an indicator without `[Browsable(false)]` and `[XmlIgnore]` — NT8 tries to serialize it and fails
2. A derived indicator property that should be hidden from the NT8 UI is missing `[Browsable(false)]`
3. A NinjaScript input property that should appear in the NT8 indicator dialog is missing `[NinjaScriptProperty]`
4. A property was promoted from `private` to `public` without adding the required attributes
## Fix Strategies
### Strategy 1: Add [Browsable(false)] + [XmlIgnore] to Series<T> properties
- **Detect**: A public property returns `Series<T>` (e.g., `Series<double>`, `Series<FootprintBar>`) and lacks both `[Browsable(false)]` and `[XmlIgnore]`. NT8 requires both attributes on all public `Series<T>` properties to prevent serialization errors.
- **Lookup**: Search the file for `public Series<` or `public ISeries<`. Every such property must have both attributes immediately above the property declaration.
- **Fix**: Add `[Browsable(false)]` and `[XmlIgnore]` on the two lines immediately before the property declaration. The `using` directives for `System.ComponentModel` and `System.Xml.Serialization` must also be present.
- **Verify**: Every public `Series<T>` property has both attributes. The file compiles and the indicator loads in NT8 without a serialization exception.
```csharp
// Required usings
using System.ComponentModel;
using System.Xml.Serialization;
// Required attributes on every public Series<T> property
[Browsable(false)]
[XmlIgnore]
public Series<double> BidVolume { get; set; }
[Browsable(false)]
[XmlIgnore]
public Series<double> AskVolume { get; set; }
```
### Strategy 2: Add [Browsable(false)] to hide a property from the NT8 indicator dialog
- **Detect**: A public property appears in the NT8 indicator settings dialog but should not be user-configurable. It may be an internal state property or a computed value.
- **Lookup**: Any public property without `[Browsable(false)]` will appear in the NT8 indicator dialog. If the property is not a user input, it should be hidden.
- **Fix**: Add `[Browsable(false)]` above the property declaration. If the property also holds a reference type or collection, add `[XmlIgnore]` as well to prevent serialization issues.
- **Verify**: The property no longer appears in the NT8 indicator settings dialog after recompile and re-add to chart.
### Strategy 3: Add [NinjaScriptProperty] to user-configurable inputs
- **Detect**: A public property is intended to appear in the NT8 indicator dialog (user-configurable input) but is missing `[NinjaScriptProperty]`. NT8 may not persist the value correctly across workspace saves.
- **Lookup**: User-configurable properties (like `Period`, `Threshold`, `Multiplier`) should have `[NinjaScriptProperty]` to ensure NT8 serializes and restores them correctly.
- **Fix**: Add `[NinjaScriptProperty]` above the property declaration. Keep `[Display(...)]` for the dialog label and ordering.
- **Verify**: The property appears in the NT8 dialog, its value persists after saving and reloading the workspace, and the indicator compiles cleanly.
```csharp
[NinjaScriptProperty]
[Display(Name = "Absorption Threshold", Order = 1, GroupName = "Parameters")]
public double AbsorptionThreshold { get; set; }
```
### Strategy 4: Promoted property missing attributes
- **Detect**: A property was recently changed from `private` or `protected` to `public` (e.g., to expose it to a strategy or another indicator). The promotion didn't include the required attributes.
- **Lookup**: Check the git diff or the property declaration. If it's `public` and returns a `Series<T>`, a collection, or a complex type, it needs `[Browsable(false)]` and `[XmlIgnore]`. If it's a simple value type intended for the dialog, it needs `[NinjaScriptProperty]`.
- **Fix**: Add the appropriate attributes based on the property's purpose (see Strategies 1-3 above).
- **Verify**: The property has the correct attributes for its intended visibility and serialization behavior.
## NT8 Attribute Reference
| Attribute | Namespace | When to Use |
|-----------|-----------|-------------|
| `[Browsable(false)]` | `System.ComponentModel` | Hide property from NT8 indicator dialog |
| `[XmlIgnore]` | `System.Xml.Serialization` | Prevent NT8 from serializing the property to workspace XML |
| `[NinjaScriptProperty]` | `NinjaTrader.NinjaScript` | Mark property as a user-configurable input (persisted in workspace) |
| `[Display(...)]` | `System.ComponentModel.DataAnnotations` | Control label, order, and group in the NT8 dialog |
| `[Range(min, max)]` | `System.ComponentModel.DataAnnotations` | Validate numeric input range in the NT8 dialog |
## Required Usings for Attributes
```csharp
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;
using NinjaTrader.NinjaScript;
```
## Example Fix
```diff
namespace NinjaTrader.NinjaScript.Indicators.DEEP6
{
public class DEEP6Footprint : Indicator
{
+ [Browsable(false)]
+ [XmlIgnore]
public Series<double> BidVolume { get; set; }
+ [Browsable(false)]
+ [XmlIgnore]
public Series<double> AskVolume { get; set; }
+ [NinjaScriptProperty]
+ [Display(Name = "Tick Size", Order = 1, GroupName = "Parameters")]
public double TickSize { get; set; }
}
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |