splunk/splunk-agent-skills/splunk-setup-page-builder

Claude Code and agent skill by splunk/splunk-agent-skills

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"},{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Build a certification-compliant first-run setup page for a Splunk app or add-on that collects non-secret settings via the configurations REST endpoint and secrets via storage/passwords, wires app.conf/default.meta correctly, and avoids the deprecated setup.xml mechanism. Use when the user wants a "Set up your app" screen, first-run configuration wizard, or a way to collect an endpoint/credential/API token for a Splunkbase app or TA. Route general app packaging, compatibility, upgrade, or removal lifecycle guidance unrelated to the setup page itself to app-and-add-on-lifecycle-advisor, and broader knowledge-object governance beyond this app's own default.meta to knowledge-object-governance.

Install

npx vskill@latest install splunk/splunk-agent-skills/splunk-setup-page-builder

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as splunk/splunk-agent-skills/splunk-setup-page-builder.

Splunk Setup Page Builder

Build a first-run setup page for a Splunk app or add-on: a screen that appears the first time a user launches the app, collects whatever configuration it needs (an endpoint URL, an API token, feature toggles, etc.), and completes without using the deprecated setup.xml mechanism.

This is proven, not theoretical: the workflow below was built end-to-end against a real Splunk Enterprise 10.4 instance, validated with splunk-appinspect in both test and precert mode, and revised after two real bugs were found during manual testing (see Known pitfalls — do not reintroduce either one). It was independently re-validated twice more by fresh agent sessions with no prior context, each building a different toy app from the instructions alone.

Prerequisites

  • A Splunk app directory to add the setup page to (existing app, or a

fresh one you scaffold with default/app.conf, default/data/ui/, and metadata/default.meta).

  • Target: Splunk Enterprise 9.x+ or Splunk Cloud Platform (equivalent

release). No local Splunk instance is required to write the files, but installing into a real instance is required to verify them — see Verification.

  • splunk-appinspect installed locally for static validation

(pip install splunk-appinspect; on macOS you may also need brew install libmagic for it to import cleanly).

When to Use

Use this skill when a user is building a Splunk app/add-on for Splunkbase (or an internal TA) that needs the user to provide configuration before it can run — most commonly an API endpoint, credentials/token, or a small set of feature settings — and wants a proper "Set up your app" experience instead of hand-editing .conf files after install.

Do not use default/setup.xml for this. It is deprecated, unsupported on Splunk Cloud Platform and search head clusters, and fails Splunk AppInspect's cloud check (check_setup_xml_in_default) outright. Every app that needs first-run configuration and wants to be Cloud-compatible must use a setup view (Simple XML or React) instead, wired through app.conf's [install] is_configured / [ui] setup_view.

Do not install or reconfigure a production or shared Splunk instance unless the user explicitly confirms that target. Never ask the user for raw Splunk admin credentials — use whatever session/auth Splunk Web already provides via the JS SDK.

Stay scoped to building the setup page itself. Route adjacent requests:

  • General app/add-on packaging, compatibility, upgrade, deprecation, or

removal guidance not about the setup page → app-and-add-on-lifecycle-advisor (advisory-only; it will not write or install anything — this skill remains the one that actually builds the setup page).

  • Governance of existing shared knowledge objects (ownership, orphans, ACL

review, naming collisions) beyond this app's own default.meta → knowledge-object-governance.

  • HEC or other data-ingestion setup/troubleshooting →

hec-setup-and-troubleshooting.

  • Authoring field extractions, CIM mappings, or ad hoc SPL unrelated to the

setup page → field-extraction-and-cim-mapping or splunk-search.

  • General Splunk product questions unrelated to setup pages →

splunk-product-question-navigator.

Architecture

<app>/
├── app.manifest # required metadata for packaging/AppInspect
├── default/
│ ├── app.conf # [install] is_configured, [ui] setup_view, [triggers]
│ └── data/ui/
│ ├── views/
│ │ ├── setup_page_dashboard.xml # the setup view (Simple XML)
│ │ └── home.xml # minimal landing view (see below)
│ └── nav/
│ └── default.xml # declares home.xml as the default view
├── metadata/
│ └── default.meta # permissions for the app + any custom conf file
├── appserver/static/
│ ├── javascript/setup_page.js # setup logic, uses the Splunk JS SDK
│ └── styles/setup_page.css
└── README/
└── <settings_conf_file>.conf.spec # spec for any custom conf file you introduce

Two storage backends, chosen per field:

Field typeStorageWhy
Non-secret setting (URL, toggle, interval, ...)The built-in configurations REST collection, targeting a custom <name>.conf file you defineNo custom Python REST handler needed. Works out of the box, Cloud-safe.
Secret (token, password, API key)storage/passwordsSplunk encrypts and stores it in passwords.conf; never write a secret into a plain conf file — that is an AppInspect failure and a real security risk.

Workflow Overview

1. Gather requirements

Ask the user (or infer from context):

  • App id / directory (must match app.conf [package] id — letters,

numbers, dots, underscores only).

  • Which fields are non-secret settings vs. secrets. For each: name, type,

required/optional, validation rule.

  • Whether the app already has other views. If not, you'll add a minimal

home view (step 6) so the app doesn't land users on unrelated shared content after setup.

  • Whether this app already has a setup page to extend, or needs one from

scratch.

2. Wire app.conf
ini
[install]
is_configured = 0
[package]
id = <app_id>
check_for_updates = false
[id]
name = <app_id>
version = 1.0.0
[ui]
is_visible = 1
label = <Human Readable Label>
# No file extension; resolves to default/data/ui/views/setup_page_dashboard.xml
setup_view = setup_page_dashboard
[launcher]
author = <author>
description = <description>
version = 1.0.0
[triggers]
# One reload.<conf_file> line per custom conf file the setup page writes.
reload.<settings_conf_file> = simple

check_for_updates = false and the [triggers] reload line are both things AppInspect will flag if you skip them — see AppInspect findings you should expect and fix.

[id] version and [launcher] version are two separate fields that must be kept equal to each other. Nothing enforces this automatically; update both together at every release, or AppInspect/Splunkbase may see a mismatched version depending on which field a given check reads.

3. Build the setup view (Simple XML + JS)

default/data/ui/views/setup_page_dashboard.xml:

xml
<dashboard isDashboard="false"
script="javascript/setup_page.js"
stylesheet="styles/setup_page.css"
hideTitle="true"
version="1.1">
<row>
<panel>
<html>
<div id="main_container">
<h3>&lt;Human Readable Label&gt;</h3>
<!-- one <input> per field, plus a submit button and
success/error containers. See
references/setup-page.js for a complete
two-field (one setting + one secret) example. -->
</div>
</html>
</panel>
</row>
</dashboard>

appserver/static/javascript/setup_page.js uses the Splunk JS SDK (splunkjs/splunk, loaded via require). The full, proven implementation — validation, saving non-secret settings, saving secrets, completing setup, reload + redirect, error rendering — is in `references/setup-page.js`. Copy it and adapt the field names/validation; do not rewrite the SDK plumbing from scratch — it has already had two real bugs found and fixed in it (see Known pitfalls). The conventions below are implicit in that file; they are restated here so you don't have to reverse-engineer them from the code:

  • Naming the settings conf file itself: use <app_id>_settings

(e.g. my_app_settings) unless the app already has a more specific name in mind. This is the <name>.conf file the configurations collection creates — not fixed by Splunk, just pick one and stay consistent with it everywhere (JS, .conf.spec, [triggers] reload line).

  • Stanza naming: the stanza name inside that conf file is, likewise,

not fixed by Splunk — pick something descriptive tied to the setting group (e.g. region_settings for a region field, polling_settings for a poll-interval field). Keep it consistent between the JS and the .conf.spec you write in step 7.

  • Naming the `storage/passwords` realm and name: tie the realm to

the app (<app_id>_realm) and the name to the specific secret field (the field's own name, e.g. api_token, webhook_signing_secret). This keeps multiple secrets in the same app distinguishable and matches the key format below.

  • You do not ship `default/<settings_conf_file>.conf` at all. The

configurations REST collection creates the file and stanza on disk in local/ the first time the setup page saves — that's the whole point of using it instead of a custom REST handler. Only default/app.conf, default/data/ui/*, metadata/default.meta, and app.manifest are things you author; the settings conf file is runtime-created output, not a source file.

  • `storage/passwords` lookup key format is `<realm>:<name>:` — realm,

name, and a literal trailing colon, colon-joined. Build this string exactly this way to check whether a credential already exists (passwords.item(key)) before deciding whether to create or update it. Getting this wrong means every "update" silently becomes a no-op-then-mismatch or a duplicate.

  • **Validate every field for its actual shape, not just presence or a

prefix.** The URL example in Known pitfalls #1 is one instance of a general rule: presence-only or prefix-only checks pass garbage. Write a real pattern/range check for whatever the field actually is (a region code, a port number, an email, etc.), not just "is it non-empty."

4. Add a minimal home view + nav

If the app has no other views, add:

default/data/ui/views/home.xml — a one-panel dashboard explaining what the app does and where to go to reconfigure it later.

default/data/ui/nav/default.xml:

xml
<nav search_view="search" color="#5C6773">
<view name="home" default="true" />
</nav>

Without this, clicking the app in Splunk Web's sidebar falls through to whatever shared/global dashboard happens to exist on the instance (e.g. another installed app's globally-exported dashboard), which is confusing and looks broken even though the setup page itself works correctly.

5. Set permissions in metadata/default.meta
ini
[]
access = read : [ * ], write : [ admin, power, sc_admin ]
export = none
[<settings_conf_file>]
access = read : [ admin, power, sc_admin ], write : [ admin, power, sc_admin ]
export = none

Include sc_admin, not just admin — admin alone is not available to Splunk Cloud customers and AppInspect will warn on it (check_kos_are_accessible).

6. Add app.manifest

Required for packaging/AppInspect (check_for_valid_package_id). Minimal shape:

json
{
"schemaVersion": "2.0.0",
"info": {
"title": "<Human Readable Label>",
"id": { "group": null, "name": "<app_id>", "version": "1.0.0" },
"author": [{ "name": "<author>", "email": null, "company": null }],
"releaseDate": null,
"description": "<description>",
"classification": { "intendedAudience": null, "categories": [], "developmentStatus": null },
"commonInformationModels": null,
"license": { "name": null, "text": null, "uri": null },
"privacyPolicy": { "name": null, "text": null, "uri": null },
"releaseNotes": { "name": null, "text": null, "uri": null }
},
"dependencies": {},
"tasks": [],
"inputGroups": {},
"incompatibleApps": {},
"platformRequirements": { "splunk": { "Enterprise": "*" } }
}
7. Write the conf spec for any custom settings file

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
50
Repository forks
9
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/splunk/splunk-agent-skills/splunk-setup-page-builder/badge)](https://verified-skill.com/skills/splunk/splunk-agent-skills/splunk-setup-page-builder)

Something wrong with this skill or its page? Tell us.