From htmlgraph
<!-- Efficiency: SDK calls: 2, Bash calls: 0, Context: ~4% -->
npx claudepluginhub shakestzd/htmlgraph<!-- Efficiency: SDK calls: 2, Bash calls: 0, Context: ~4% -->
# /htmlgraph:feature-primary
Set the primary feature for activity attribution
## Usage
## Parameters
- `feature-id` (required): The feature ID to set as primary
## Examples
Set feature-001 as the primary feature for activity attribution
## Instructions for Claude
This command uses the SDK's `features.set_primary()` method.
### Implementation:
python
feature = sdk.features.set_primary(feature_id)
if not feature:
print(f"Error: Feature {feature_id} not found")
return
python
other_active =...Set the primary feature for activity attribution
/htmlgraph:feature-primary <feature-id>
feature-id (required): The feature ID to set as primary/htmlgraph:feature-primary feature-001
Set feature-001 as the primary feature for activity attribution
This command uses the SDK's features.set_primary() method.
from htmlgraph import SDK
sdk = SDK(agent="claude")
# Parse arguments
**DO THIS:**
1. **Set feature as primary using SDK:**
```python
feature = sdk.features.set_primary(feature_id)
if not feature:
print(f"Error: Feature {feature_id} not found")
return
Extract feature details:
feature.idfeature.titlefeature.statusGet other active features:
other_active = [f for f in sdk.features.where(status="in-progress") if f.id != feature_id]
Present a summary using the output template below with:
Inform the user:
### Output Format:
## Primary Feature Set
**ID:** {feature_id}
**Title:** {title}
All subsequent activity will be attributed to this feature unless it matches another feature's patterns better.
### Other Active Features
{other_active_features}