Resources
12Install
npx skillscat add arijit11-supernova/forge-sprint-01 Install via the SkillsCat registry.
SKILL.md
Skill: get-page-title
Description
Takes a URL as input, fetches the HTML content of the page, and extracts and returns the page title.
Input
url: The full URL of the webpage to be analyzed.
Implementation Logic
- Fetch Content: Use the
WebFetchtool to retrieve the content of the providedurl. - Extract Title:
- If the tool returns the page title in its metadata, use that.
- Otherwise, parse the returned markdown/HTML content for the
<title>element or the first<h1>tag.
- Return Result: Output the extracted title as a plain string.
Example
Input: https://www.anthropic.com
Output: Anthropic