CommunitySchreiben & Editierengithub.com

prokerala/agent-skills

Agent skills for building integrations with the Prokerala Astrology API.

Was ist agent-skills?

agent-skills is a Claude Code agent skill that agent skills for building integrations with the Prokerala Astrology API.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add prokerala/agent-skills

Installed? Explore more Schreiben & Editieren skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Prokerala Astrology PHP SDK

prokerala/astrology-sdk is the official PHP client for the Prokerala Astrology API v2. It provides a typed service class per endpoint, PSR-18/17 HTTP abstraction, optional PSR-16 token caching, and typed result objects with getters.

Source repository: https://github.com/prokerala/astrology-sdk

How to Use This Skill

  • Consuming the SDK (install, bootstrap, first call): read references/getting-started.md.
  • Finding the right service class for an endpoint: read references/services.md (all 99 services mapped to API paths).
  • Modifying or extending the SDK (new endpoints, result classes, tests): read references/maintainer-guide.md.
  • Endpoint parameters, enums, and response schemas are documented in the companion API skill prokerala-astrology-api; the SDK skill does not duplicate them.

Requirements

  • PHP >= 8.0
  • Composer packages: prokerala/astrology-sdk plus a PSR-17/PSR-18 implementation (e.g. nyholm/psr7 + guzzlehttp/guzzle) and optionally a PSR-16 cache (e.g. symfony/cache) for token caching.

Quick Reference

use GuzzleHttp\Client as HttpClient;
use Nyholm\Psr7\Factory\Psr17Factory;
use Prokerala\Common\Api\Authentication\Oauth2;
use Prokerala\Common\Api\Client;
use Prokerala\Api\Astrology\Location;
use Prokerala\Api\Astrology\Service\Kundli;

$psr17Factory = new Psr17Factory();
$httpClient = new HttpClient();

// Optional 6th argument: any PSR-16 cache; caches the OAuth token until expiry.
$authClient = new Oauth2($clientId, $clientSecret, $httpClient, $psr17Factory, $psr17Factory, $cache);
$client = new Client($authClient, $httpClient, $psr17Factory);

$location = new Location(23.1765, 75.7885, 0, new DateTimeZone('Asia/Kolkata'));
$datetime = new DateTimeImmutable('2022-03-17T10:50:40+05:30');

$result = (new Kundli($client))->process($location, $datetime);
$nakshatra = $result->getNakshatraDetails()->getNakshatra()->getName();
  • Services take the Client in their constructor and expose a single process(...) method.
  • Pass coordinates via Location; pass date-times as DateTimeImmutable (the SDK formats them ISO 8601 internally).
  • $client->getCreditUsed() returns the API credits consumed by the last call (from the X-Api-Credits header).

Exceptions

All in Prokerala\Common\Api\Exception, thrown by Client::process():

ExceptionHTTP statusMeaning
ValidationException400Invalid input; holds the full errors list
AuthenticationException401Bad or expired credentials
QuotaExceededException403Out of API credits
RateLimitExceededException429Too many requests; back off
ServerException500Server-side failure
ExceptionotherBase class; catch-all

TokenExpiredException is handled internally (the client refreshes the token and retries once); consumer code does not need to catch it.

Verwandte Skills

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community