I am trying to check Layout pins VS Schematic pins by skill scriptin.could you please let me know some commands regarding this.
You could use the cross-view check capability? That's schHiVIC() for the UI, and schVIC() from SKILL. You'd need to set up some cdsenv vars (using schSetEnv or envSetVal) to indicate which views you wanted to cross-view check against.
Or write something yourself. Depends what you want to check!