| name | saw-web-target-configuration |
| description | DEFAULT skill for creating Snyk API & Web targets. Use for all target creation requests unless the user explicitly mentions an API target, OpenAPI schema, Swagger spec, or Postman collection. Handles web application targets with authentication, login sequences, 2FA, and logout detection. |
Web Target Configuration Skill (Snyk API & Web)
Configure web application targets for Snyk API & Web security scanning with authentication support. For API targets, use the saw-api-target-configuration skill instead.
Target Type Check — Do This First
Before proceeding, determine whether this is an API target or a web target:
- If the user has provided an OpenAPI/Swagger schema (URL or file), a Postman collection, or explicitly said "API target" — stop and use the
saw-api-target-configuration skill instead.
- Otherwise, treat it as a web target by default. If the user just says "add a target", "create a target", or provides a URL without further qualification, proceed here.
When you finish adding/configuring a target, always summarize it with a table, and include a link to the target on Snyk API & Web. Use the Snyk API & Web app URL https://plus.probely.app. Include a column if you added extra hosts or not and in case you did, which ones.
Multiple Targets — MUST Use Subagents in Sequence
When the user provides more than one target, you MUST launch subagents one at a time, waiting for each to finish before launching the next. Playwright uses a single browser instance; parallel subagents would conflict.
Each subagent prompt should be short — just the target details and an instruction to read the skill file:
Configure a Snyk API & Web web target:
- URL: <url>
- Name: <name or "auto" — if "auto", derive from the site's <title>>
- Labels: <["Label1", ...] or "default" — if "default", do NOT pass labels param>
- Username: <user>
- Password: <pass>
- 2FA TOTP seed: <seed or "none">
First, read the skill file at <ABSOLUTE_PATH_TO_THIS_SKILL_FILE> and follow the full workflow.
Return a summary with: target ID, name, URL, login sequence status, logout detection status, extra hosts, Snyk API & Web link (https://plus.probely.app/targets/{targetId}).
Launch one Task tool call at a time. Wait for it to complete before launching the next. After all finish, compile summaries into one table.
Credentials Management — Recommended (Used by Default)
Use the credential manager for sensitive values (passwords, TOTP seeds, etc.) by default. Store values via probely_create_credential with is_sensitive=True and use the returned uri (e.g. credentials://xxxx) in the API. If the user explicitly declines, inline values are allowed.
Shared Credentials Across Multiple Targets
When configuring multiple targets that use the same credentials, the credential may already exist in the credential manager from a previous target. Since sensitive (obfuscated) values cannot be read back, the agent cannot verify whether it matches — this causes a new credential entry per target, polluting the credential manager.
Rule: When multiple targets share the same credential and it already exists with is_sensitive=True, prompt the user to deobfuscate it (update to is_sensitive=False via probely_update_credential) so it can be read back and reused across targets. Inform the user why deobfuscation is needed.
Workflow for shared credentials:
- Create the credential normally with
is_sensitive=True for the first target.
- When a subsequent target needs the same credential, find the existing one via
probely_list_credentials.
- If the existing credential is sensitive (
is_sensitive=True or value is null), prompt the user: "The credential '' is obfuscated. To reuse it across multiple targets, it needs to be deobfuscated. Would you like to proceed?"
- If the user agrees, update it:
probely_update_credential(credentialId, is_sensitive=False).
- Reuse the same credential
uri for the new target.
Pattern:
cred = probely_create_credential(
name="<target_name> - <description>",
value="the_actual_secret_value",
is_sensitive=True # always sensitive by default
)
# cred["uri"] → "credentials://xxxx"
Credential URIs: Use the format credentials://<credential_id> (e.g., credentials://4DY4qGohso1r).
Get credential URIs from probely_list_credentials or probely_create_credential.
Do NOT use template syntax like {{cred-name}}.
Web Application Onboarding Workflow
Step 1: Gather Information and Determine Authentication Method
Ask the user for (or derive):
- Target URL
- Target name (User provided > site
<title> > FQDN)
- Labels (Only pass if specified by user, do not add "Agentic")
- Login credentials
- 2FA/MFA requirements
Authentication method:
- Login Sequence (use when Playwright is available) - Record the login in the browser. Prefer this.
- Form Login (only when Playwright is NOT available) - Simple form-based auth.
Creating Duplicate Targets
To create a duplicate target (same URL as existing target), use allow_duplicate=True. This is useful when you want multiple targets for the same URL with different configurations (e.g., different authentication methods, different test scenarios):
probely_create_web_target(
name="MyApp - Different Auth Method",
url="https://app.example.com",
allow_duplicate=True
)
Reachability Failures
If target creation fails because the target is unreachable or the domain cannot be resolved, do not stop at the first error. Ask the user whether you should retry with skip_reachability_check=True. Only retry after the user explicitly agrees.
Step 2: Using Login Sequence (Playwright Available)
- Navigate to target URL using Playwright
- Find the login page and record the URL.
- Inspect the current step's form elements - run
scripts/inspect-login-form.js via browser_evaluate to detect what's visible. Run this on every step of the login flow.
- Fill credentials and submit - record selectors for the login sequence JSON.
- Handle 2FA if needed - use
probely_generate_totp to get a code for the live login.
- Verify login success - Record the absolute URL you land on after successful login for logout detection.
- Verify login selectors are NOT on the post-login page - test if login selectors still exist using
browser_evaluate.
- Detect external API hosts (CRITICAL) - Read
references/extra-hosts.md for instructions on using network requests and scripts/extract-api-hosts.js to find extra hosts.
- Generate the login sequence JSON - Read
references/sequence-format.md for the correct JSON format using custom fields.
- Enable authentication with login sequence - call
probely_configure_sequence_login(targetId, enabled=True).
Configuration Tool Calls
target = probely_create_web_target(name=..., url=..., desc=..., labels=...)
probely_create_sequence(targetId, name="Login Sequence", content="...", sequence_type="login", enabled=True, custom_field_mappings=[...])
probely_configure_sequence_login(targetId, enabled=True)
probely_configure_logout_detection(targetId, enabled=True, check_session_url=..., logout_detector_type=..., logout_detector_value=..., logout_condition=...)
probely_create_extra_host(targetId, hostname="...", ip_address="")
Step 3: Using Form Login (Playwright NOT Available)
By default, store the password via credential manager and pass the credential URI. If the user explicitly declines, pass the password inline.
probely_configure_form_login(
targetId,
login_url="https://app.example.com/login",
username_field="email",
password_field="password",
username="user@example.com",
password="...",
check_pattern="Welcome"
)