Skip to content
Back to skills

Remove Feature

ASecurity

TRIGGER when user asks to remove, delete, or drop an endpoint, config, metric, ticker, or event from a microservice. Safely removes code from service.go, intermediate.go, client.go, mock.go, service_test.go, and manifest.yaml.

  • 172 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
content-marketinggogitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add microbus-io/fabric --skill remove-feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Feature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remove Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/microbus-io-remove-feature/badge)](https://www.skillsdirectory.com/skills/microbus-io-remove-feature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: remove-feature
description: TRIGGER when user asks to remove, delete, or drop an endpoint, config, metric, ticker, or event from a microservice. Safely removes code from service.go, intermediate.go, client.go, mock.go, service_test.go, and manifest.yaml.
---

**CRITICAL**: Read and analyze this microservice before starting. Do NOT explore or analyze other microservices. The instructions in this skill are self-contained to this microservice.

## Workflow

Copy this checklist and track your progress:

```
Removing a feature of a microservice:
- [ ] Step 1: Remove marked code
- [ ] Step 2: Remove unused custom types
- [ ] Step 3: Regenerate the mock
- [ ] Step 4: Housekeeping
```

#### Step 1: Remove Marked Code

Scan the files in the directory of the microservice and its subdirectories for `MARKER: FeatureName` to locate the code related to the feature.

A marker comment on a line that opens a `{` or `(` group suggests that the entire block - including everything up to the matching closing brace or paren - should be removed.

```go
if example { // MARKER: FeatureName
	// ...
}
```

```go
svc.Subscribe( // MARKER: FeatureName
	"FeatureName", svc.doFeatureName,
	sub.At(..., ...)
	...
)
```

Otherwise, the marker suggests that a single line should be removed.

```go
var example // MARKER: FeatureName
```

```go
FeatureName = Def{Method: "ANY", Route: "/feature-name"} // MARKER: FeatureName
```

#### Step 2: Remove Unused Custom Types

If the deleted feature was using non-primitive custom types defined in `myserviceapi` directory, and those types are no longer used elsewhere by the microservice, remove their definition.

#### Step 3: Regenerate the Mock

Run `go run github.com/microbus-io/fabric/cmd/genmock --path .` from the microservice's directory.

#### Step 4: Housekeeping

Follow the `housekeeping` skill.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.